Skip to content

Commit

Permalink
CI - push to artifactory (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
liranbg authored Jan 27, 2023
1 parent 535d50b commit 7daa8fd
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ on:
branches:
- development

env:
RELEASE_REGISTRY: gcr.io
RELEASE_REPO: iguazio
ARTIFACTORY_REGISTRY: artifactory.iguazeng.com:6555

jobs:
release:
name: Release Docker Images
runs-on: ubuntu-latest
runs-on: [ self-hosted, Linux ]
steps:

- name: Set unstable
Expand All @@ -43,14 +48,31 @@ jobs:
- uses: actions/checkout@v3

- name: Login to artifactory
run: docker login -u ${{ secrets.ARTIFACTORY_DOCKER_USERNAME }} -p ${{ secrets.ARTIFACTORY_DOCKER_PASSWORD }} ${{ env.ARTIFACTORY_REGISTRY }}

- name: Login to GCR
run: |
echo "$GCR_JSON_KEY" | docker login -u _json_key --password-stdin https://gcr.io
env:
GCR_JSON_KEY: ${{ secrets.GCR_IGUAZIO_JSON_KEY }}

- name: Build image
- name: Build image [GCR]
run: make build
env:
REPOSITORY: ${{ env.RELEASE_REGISTRY }}/${{ env.RELEASE_REPO }}

- name: Push image [GCR]
run: make push
env:
REPOSITORY: ${{ env.RELEASE_REGISTRY }}/${{ env.RELEASE_REPO }}

- name: Build image [Artifactory]
run: make build
env:
REPOSITORY: ${{ env.ARTIFACTORY_REGISTRY }}/${{ env.RELEASE_REPO }}

- name: Push image
- name: Push image [Artifactory]
run: make push
env:
REPOSITORY: ${{ env.ARTIFACTORY_REGISTRY }}/${{ env.RELEASE_REPO }}

0 comments on commit 7daa8fd

Please sign in to comment.