-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.1 KB
/
publish_image_sha.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
name: Publish Image Using Commit Hash
on:
push:
branches:
- main
jobs:
publish_qa:
name: Publish QA Image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set the QA configuration file
run: mv env-qa .env
- name: Push the image on the docker registry
uses: Ferlab-Ste-Justine/action-push-image@v2
with:
username: ${{ secrets.FERLAB_DOCKER_HUB_USER }}
password: ${{ secrets.FERLAB_DOCKER_HUB_TOKEN }}
image: ferlabcrsj/cqdg-portal-ui
tag_format: "qa-{sha}-{timestamp}"
publish_qa_juno:
name: Publish QA-Juno Image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set the QA-Juno configuration file
run: mv env-qa .env
- name: Push the image on the docker registry
uses: Ferlab-Ste-Justine/action-push-image@v2
with:
username: ${{ secrets.FERLAB_DOCKER_HUB_USER }}
password: ${{ secrets.FERLAB_DOCKER_HUB_TOKEN }}
image: ferlabcrsj/cqdg-portal-ui
tag_format: "qa-juno-{sha}-{timestamp}"