Skip to content

Commit

Permalink
Fix multiplatform release publish (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
orishoshan committed Dec 26, 2023
1 parent ce7285d commit 339f601
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,18 @@ jobs:
with:
driver-opts: network=host

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: otterize
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build operator release image with tag as version
uses: docker/build-push-action@v2
with:
context: src/
file: src/release.Dockerfile
tags: ${{ env.REGISTRY }}/intents-operator:${{ github.ref_name }}
tags: otterize/intents-operator:${{ github.ref_name }},otterize/intents-operator:latest
push: true
network: host
platforms: linux/amd64,linux/arm64
Expand All @@ -47,21 +53,6 @@ jobs:
"VERSION=${{ github.ref_name }}"
"SOURCE_IMAGE=${{ env.REGISTRY }}/intents-operator:${{ github.sha }}"
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: otterize
password: ${{ secrets.DOCKER_PASSWORD }}


- name: Push to Docker Hub
run: |-
docker pull ${{ env.REGISTRY }}/intents-operator:${{ github.ref_name }}
docker tag ${{ env.REGISTRY }}/intents-operator:${{ github.ref_name }} otterize/intents-operator:${{ github.ref_name }}
docker tag ${{ env.REGISTRY }}/intents-operator:${{ github.ref_name }} otterize/intents-operator:latest
docker push otterize/intents-operator:${{ github.ref_name }}
docker push otterize/intents-operator:latest
commit-latest-build-tag-to-helm-chart:
name: Commit Latest Build Tag
runs-on: ubuntu-latest
Expand Down

0 comments on commit 339f601

Please sign in to comment.