Skip to content

chore(deps): update docker/metadata-action action to v5.6.1 #98

chore(deps): update docker/metadata-action action to v5.6.1

chore(deps): update docker/metadata-action action to v5.6.1 #98

Workflow file for this run

name: Docker Build
'on':
push:
tags: [ '*.*.*-*' ]
branches: [ main ]
pull_request:
branches: [ main ]
env:
DOCKER_IMAGE: etriasnl/varnish
jobs:
build:
runs-on: ubuntu-latest
steps:
-
uses: actions/[email protected]
-
uses: docker/[email protected]
with:
buildkitd-config-inline: |
[registry."docker.io"]
mirrors = ["mirror.gcr.io"]
-
id: build
uses: docker/[email protected]
with:
context: .
load: true
# https://docs.docker.com/build/ci/github-actions/cache/#github-cache
cache-from: type=gha
cache-to: type=gha,mode=max
-
run: |
docker run --rm --entrypoint=sh "${{ steps.build.outputs.imageid }}"
-
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
if: github.ref_type == 'tag'
-
id: meta
uses: docker/[email protected]
with:
images: ${{ env.DOCKER_IMAGE }}
if: github.ref_type == 'tag'
-
uses: docker/[email protected]
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: github.ref_type == 'tag'