Skip to content

Commit 7daa8fd

Browse files
authored
CI - push to artifactory (#21)
1 parent 535d50b commit 7daa8fd

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

Diff for: .github/workflows/release.yaml

+25-3
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ on:
2424
branches:
2525
- development
2626

27+
env:
28+
RELEASE_REGISTRY: gcr.io
29+
RELEASE_REPO: iguazio
30+
ARTIFACTORY_REGISTRY: artifactory.iguazeng.com:6555
31+
2732
jobs:
2833
release:
2934
name: Release Docker Images
30-
runs-on: ubuntu-latest
35+
runs-on: [ self-hosted, Linux ]
3136
steps:
3237

3338
- name: Set unstable
@@ -43,14 +48,31 @@ jobs:
4348
4449
- uses: actions/checkout@v3
4550

51+
- name: Login to artifactory
52+
run: docker login -u ${{ secrets.ARTIFACTORY_DOCKER_USERNAME }} -p ${{ secrets.ARTIFACTORY_DOCKER_PASSWORD }} ${{ env.ARTIFACTORY_REGISTRY }}
53+
4654
- name: Login to GCR
4755
run: |
4856
echo "$GCR_JSON_KEY" | docker login -u _json_key --password-stdin https://gcr.io
4957
env:
5058
GCR_JSON_KEY: ${{ secrets.GCR_IGUAZIO_JSON_KEY }}
5159

52-
- name: Build image
60+
- name: Build image [GCR]
61+
run: make build
62+
env:
63+
REPOSITORY: ${{ env.RELEASE_REGISTRY }}/${{ env.RELEASE_REPO }}
64+
65+
- name: Push image [GCR]
66+
run: make push
67+
env:
68+
REPOSITORY: ${{ env.RELEASE_REGISTRY }}/${{ env.RELEASE_REPO }}
69+
70+
- name: Build image [Artifactory]
5371
run: make build
72+
env:
73+
REPOSITORY: ${{ env.ARTIFACTORY_REGISTRY }}/${{ env.RELEASE_REPO }}
5474

55-
- name: Push image
75+
- name: Push image [Artifactory]
5676
run: make push
77+
env:
78+
REPOSITORY: ${{ env.ARTIFACTORY_REGISTRY }}/${{ env.RELEASE_REPO }}

0 commit comments

Comments
 (0)