Skip to content

Commit

Permalink
fix: actions docker buils
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Feb 22, 2024
1 parent 90b5541 commit eb359fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,9 @@ jobs:
path: |
backend/
frontend/public

build-docker:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
goarch: [ 'amd64', 'arm64' ] # Define architectures here
if: ${{ github.ref }} != 'master' && ${{ github.ref }} != 'development'
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand All @@ -96,9 +91,7 @@ jobs:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/kubevoyage:${{ env.BRANCH_NAME }}
platforms: linux/${{ matrix.goarch }}
build-args: |
TARGETARCH=${{ matrix.goarch }}
platforms: linux/amd64,linux/arm64
release:
needs: helm-release
runs-on: ubuntu-latest
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,9 @@ jobs:
path: |
backend/
frontend/public
build-docker:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
goarch: [ 'amd64', 'arm64' ] # Define architectures here
if: ${{ github.ref }} != 'master' && ${{ github.ref }} != 'development'
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand All @@ -75,7 +71,6 @@ jobs:
with:
name: production-artifacts-${{matrix.goarch}}
merge-multiple: true

- name: Set up Docker Build
uses: docker/setup-buildx-action@v3

Expand All @@ -90,9 +85,7 @@ jobs:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/kubevoyage:${{ env.BRANCH_NAME }}
platforms: linux/${{ matrix.goarch }}
build-args: |
TARGETARCH=${{ matrix.goarch }}
platforms: linux/amd64,linux/arm64
helm-release:
needs: build-docker
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ jobs:
build-docker:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
goarch: [ 'amd64', 'arm64' ] # Define architectures here
if: ${{ github.ref }} != 'master' && ${{ github.ref }} != 'development'
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand All @@ -88,9 +85,7 @@ jobs:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/kubevoyage:${{ env.BRANCH_NAME }}
platforms: linux/${{ matrix.goarch }}
build-args: |
TARGETARCH=${{ matrix.goarch }}
platforms: linux/amd64,linux/arm64
helm-release:
needs: build-docker
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
Expand Down

0 comments on commit eb359fb

Please sign in to comment.