Skip to content

Commit

Permalink
CI action bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed Feb 16, 2024
1 parent 05fcade commit d046b3f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- '**'
tags:
- '*'
paths-ignore:
- "README.md"
- "LICENSE"
- ".github/workflows/deploy-dockerhub.yml"
pull_request:

jobs:
Expand Down Expand Up @@ -60,18 +64,17 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
# platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
push: true
tags: ${{ github.repository }}:latest
labels: ${{ steps.docker_meta.outputs.labels }}

- name: Build and push branch or test PR
if: github.ref != 'refs/heads/master'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
# platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}

0 comments on commit d046b3f

Please sign in to comment.