Skip to content

Commit

Permalink
Merge pull request #113 from madflojo/docker-build
Browse files Browse the repository at this point in the history
chore(ci): fixing the docker build i broke again
  • Loading branch information
madflojo authored May 25, 2024
2 parents 18d419a + 16f3554 commit 0edee39
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ on:
tags:
- v*
pull_request:
branches:
- main

jobs:
docker-build:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -34,15 +33,15 @@ jobs:
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: ${{ if github.event_name == 'push', 'true', 'false' }}
push: ${{ github.event_name == 'push' && 'true' || 'false' }}
tags: madflojo/tarmac:unstable
- name: Build and push (tag)
id: docker_build_tag
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: ${{ if github.event_name == 'push', 'true', 'false' }}
push: ${{ github.event_name == 'push', 'true', 'false' }}
# tag with the git tag v*
tags: |
madflojo/tarmac:${{ github.ref_name }}
Expand Down

0 comments on commit 0edee39

Please sign in to comment.