-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·48 lines (41 loc) · 1.49 KB
/
label-images-and-push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Label Images and Push
on:
workflow_run:
workflows: ["Test Docker Images"]
types:
- completed
workflow_dispatch:
push:
paths:
- .github/workflows/label-images-and-push.yml
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
label-images-and-push:
runs-on: [self-hosted, linux, docker]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
show-progress: true
set-safe-directory: '/'
- name: Read the image version
id: package
uses: juliangruber/read-file-action@v1
with:
path: ${{ github.workspace }}/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/[email protected]
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"