Skip to content

Commit

Permalink
ci(release): disable mac release and add arm arch in image release
Browse files Browse the repository at this point in the history
  • Loading branch information
giusdp committed Mar 8, 2024
1 parent 62b939f commit 7ecec5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/image-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -48,21 +48,21 @@ jobs:
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
- name: Build and push Core
uses: docker/build-push-action@v3.0.0
uses: docker/build-push-action@v5
with:
context: .
file: core/Dockerfile
push: true
tags: ghcr.io/funlessdev/core:latest,ghcr.io/funlessdev/core:${{ env.VERSION }}
platforms: linux/amd64
platforms: linux/amd64,linux/arm64/v8
build-args: MIX_ENV=prod

- name: Build and push Worker
uses: docker/build-push-action@v3.0.0
uses: docker/build-push-action@v5
with:
context: .
file: worker/Dockerfile
push: true
tags: ghcr.io/funlessdev/worker:latest,ghcr.io/funlessdev/worker:${{ env.VERSION }}
platforms: linux/amd64
platforms: linux/amd64,linux/arm64/v8
build-args: MIX_ENV=prod
6 changes: 1 addition & 5 deletions .github/workflows/release-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-2022, macos-14]
os: [ubuntu-22.04, windows-2022]
include:
- os: ubuntu-22.04
rust-target: x86_64-unknown-linux-gnu
Expand All @@ -46,10 +46,6 @@ jobs:
rust-target: x86_64-pc-windows-gnu
release-tarball: core-x86_64-windows.tar.gz
release-name: core
- os: macos-14
rust-target: x86_64-apple-darwin
release-tarball: core-x86_64-macos.tar.gz
release-name: core

runs-on: ${{ matrix.os }}
env:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-2022, macos-14]
os: [ubuntu-22.04, windows-2022]
include:
- os: ubuntu-22.04
rust-target: x86_64-unknown-linux-gnu
Expand All @@ -46,10 +46,6 @@ jobs:
rust-target: x86_64-pc-windows-gnu
release-tarball: worker-x86_64-windows.tar.gz
release-name: worker
- os: macos-14
rust-target: x86_64-apple-darwin
release-tarball: worker-x86_64-macos.tar.gz
release-name: worker

runs-on: ${{ matrix.os }}
env:
Expand Down

0 comments on commit 7ecec5a

Please sign in to comment.