Skip to content

Commit

Permalink
Merge pull request #1849 from hackmdio/chore/build-image-cont
Browse files Browse the repository at this point in the history
Build docker image using github actions
  • Loading branch information
Yukaii authored Jan 5, 2024
2 parents 72aca4e + 5ce5e2a commit 4521f6e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:
runtime:
description: 'Runtime image'
required: true
default: 'hackmdio/runtime:16.20.2-58224661'
default: 'hackmdio/runtime:16.20.2-35fe7e39'
buildpack:
description: 'Buildpack image'
required: true
default: 'hackmdio/buildpack:16.20.2-58224661'
default: 'hackmdio/buildpack:16.20.2-35fe7e39'

env:
REGISTRY_IMAGE: hackmdio/hackmd
Expand All @@ -25,7 +25,7 @@ jobs:
matrix:
platform:
- linux/amd64
# - linux/arm64
- linux/arm64
steps:
-
name: Prepare
Expand All @@ -41,9 +41,6 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags:
type=match,pattern=\d.\d.\d
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -64,11 +61,11 @@ jobs:
context: .
file: ./deployments/Dockerfile
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
build-args: |
RUNTIME=${{ github.event.inputs.runtime || 'hackmdio/runtime:16.20.2-58224661' }}
BUILDPACK=${{ github.event.inputs.buildpack || 'hackmdio/buildpack:16.20.2-58224661' }}
RUNTIME=${{ github.event.inputs.runtime || 'hackmdio/runtime:16.20.2-35fe7e39' }}
BUILDPACK=${{ github.event.inputs.buildpack || 'hackmdio/buildpack:16.20.2-35fe7e39' }}
-
name: Export digest
run: |
Expand Down Expand Up @@ -105,6 +102,9 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=match,pattern=\d.\d.\d
type=sha,prefix=
-
name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down

0 comments on commit 4521f6e

Please sign in to comment.