Skip to content

Commit

Permalink
Attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyknox committed Nov 9, 2023
1 parent 066e852 commit d6b2b79
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: docker

on:
push:
tags:
Expand All @@ -22,7 +23,6 @@ jobs:
timeout-minutes: 120
steps:
- name: Checkout repository
id: checkout
uses: actions/checkout@v4

- name: Set up QEMU
Expand All @@ -32,21 +32,8 @@ jobs:

- name: Install Docker BuildX
uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true
version: latest
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug
endpoint: unix:///var/run/docker.sock

- name: Create Builder
uses: docker/buildx-create-action@v1
with:
use: true
name: mybuilder
driver: docker-container
driver-opts: network=host
buildkitd-flags: --debug

- name: Log into registry ${{ env.REGISTRY }}
Expand All @@ -58,7 +45,6 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
Expand All @@ -82,9 +68,9 @@ jobs:
tags: ${{ steps.docker_tagging.outputs.docker_tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry
cache-to: type=inline
build-args: |
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}

0 comments on commit d6b2b79

Please sign in to comment.