Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 10, 2024
1 parent 40a02fd commit fabec26
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,41 @@ jobs:
annotations: ${{ steps.meta.outputs.annotations }}
build-args: |
VERSION_ARG=${{ steps.meta.outputs.version }}
-
name: Custom metadata
id: custom
if: env.exists == 'false'
uses: docker/metadata-action@v5
with:
context: git
images: |
${{ secrets.DOCKERHUB_CUSTOM }}
tags: |
type=raw,value=latest,priority=100,enable=${{ env.beta == 'false' }}
type=raw,value=${{ env.latest_tag }}
labels: |
org.opencontainers.image.title=${{ vars.NAME }}
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
-
name: Copy custom code
if: env.exists == 'false'
run: |
cp Dockerfile.custom ${{ github.event.repository.name }}/Dockerfile
-
name: Build custom image
if: env.exists == 'false'
uses: docker/build-push-action@v6
with:
context: ./${{ github.event.repository.name }}
push: true
provenance: false
platforms: linux/amd64,linux/arm64
tags: ${{ steps.custom.outputs.tags }}
labels: ${{ steps.custom.outputs.labels }}
annotations: ${{ steps.custom.outputs.annotations }}
build-args: |
VERSION_ARG=${{ steps.meta.outputs.version }}
-
name: Create a release
if: env.exists == 'false'
Expand Down

0 comments on commit fabec26

Please sign in to comment.