Skip to content

Commit

Permalink
ci(code): apply docker labels and push
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavmishra90 committed Aug 27, 2024
1 parent ef637a4 commit c403d44
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/label-images-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Label Images and Push

on:
workflow_run:
workflows: ["Check Python Packages"]
types:
- completed
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
test-containers:
runs-on: [self-hosted, linux, x64]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Read the image version
id: package
uses: juliangruber/read-file-action@v1
with:
path: ./docker/image_version.txt

- name: Pull Docker image
run: |
echo "Pulling image pranavmishra90/facsimilab-full:${{ steps.package.outputs.content }}"
docker pull pranavmishra90/facsimilab-full:${{ steps.package.outputs.content }}
docker pull pranavmishra90/facsimilab-main:${{ steps.package.outputs.content }}
- name: Label the docker containers and then push the labels
run: bash docker/push-all.sh

- name: Matrix Message - Completed GitHub Action
uses: s3krit/matrix-message-action@v0.0.3
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "FacsimiLab ${{ steps.package.outputs.content }} - Applied the image version tags and pushed"
server: "matrix.drpranavmishra.com"

0 comments on commit c403d44

Please sign in to comment.