Skip to content

Commit

Permalink
action step update and image build linux/amd64 only for dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed May 25, 2024
1 parent c768c29 commit 0121204
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- 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 Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: fallenbreath
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
fallenbreath/chatbridge
Expand All @@ -39,9 +39,9 @@ jobs:
type=semver,pattern={{version}}
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
platforms: ${{ startsWith(github.ref, 'refs/tags/v') && 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64' || 'linux/amd64' }}
file: ./docker/Dockerfile
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 0121204

Please sign in to comment.