Skip to content

Commit

Permalink
branch-build-push
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhmiller authored Jan 4, 2023
1 parent 74a2816 commit 805675b
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Docker Hub CI
on:
push:
branches: [ "main" ]
tags: [ "v*" ]

jobs:
build:
Expand All @@ -16,18 +15,6 @@ jobs:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
flavor: |
latest=auto
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -44,16 +31,5 @@ jobs:
file: ./app/Dockerfile
context: ./app
push: true
if: ${{ github.event.release.tag_name }} == ''
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest
platforms: linux/amd64,linux/arm64
-
name: Tagged build and push
uses: docker/build-push-action@v3
with:
file: ./app/Dockerfile
context: ./app
push: true
if: ${{ github.event.release.tag_name }} != ''
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64

0 comments on commit 805675b

Please sign in to comment.