Skip to content

Commit 3d1715a

Browse files
Merge pull request #4 from stackrox/jv-push-image-in-ci
Jv push image in ci
2 parents c8d87ee + 1d7273c commit 3d1715a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,25 @@ jobs:
2525
- name: Run tests
2626
run: cargo test
2727

28-
build:
28+
build-and-push:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v3
32+
with:
33+
fetch-depth: 0
34+
3235
- run: make
36+
37+
- name: Get tag
38+
run: |
39+
TAG="$(make tag)"
40+
echo "TAG=$TAG" >> $GITHUB_ENV
41+
42+
- name: Retag and push stackrox-io
43+
uses: stackrox/actions/images/retag-and-push@v1
44+
with:
45+
src-image: berserker
46+
dst-image: quay.io/rhacs-eng/qa:berserker-${{ env.TAG }}
47+
username: ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
48+
password: ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}
49+

0 commit comments

Comments
 (0)