Skip to content

Commit 4521f6e

Browse files
authored
Merge pull request #1849 from hackmdio/chore/build-image-cont
Build docker image using github actions
2 parents 72aca4e + 5ce5e2a commit 4521f6e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/push-image.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on:
88
runtime:
99
description: 'Runtime image'
1010
required: true
11-
default: 'hackmdio/runtime:16.20.2-58224661'
11+
default: 'hackmdio/runtime:16.20.2-35fe7e39'
1212
buildpack:
1313
description: 'Buildpack image'
1414
required: true
15-
default: 'hackmdio/buildpack:16.20.2-58224661'
15+
default: 'hackmdio/buildpack:16.20.2-35fe7e39'
1616

1717
env:
1818
REGISTRY_IMAGE: hackmdio/hackmd
@@ -25,7 +25,7 @@ jobs:
2525
matrix:
2626
platform:
2727
- linux/amd64
28-
# - linux/arm64
28+
- linux/arm64
2929
steps:
3030
-
3131
name: Prepare
@@ -41,9 +41,6 @@ jobs:
4141
uses: docker/metadata-action@v5
4242
with:
4343
images: ${{ env.REGISTRY_IMAGE }}
44-
tags:
45-
type=match,pattern=\d.\d.\d
46-
type=sha
4744
-
4845
name: Set up QEMU
4946
uses: docker/setup-qemu-action@v3
@@ -64,11 +61,11 @@ jobs:
6461
context: .
6562
file: ./deployments/Dockerfile
6663
platforms: ${{ matrix.platform }}
67-
tags: ${{ steps.meta.outputs.tags }}
64+
labels: ${{ steps.meta.outputs.labels }}
6865
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
6966
build-args: |
70-
RUNTIME=${{ github.event.inputs.runtime || 'hackmdio/runtime:16.20.2-58224661' }}
71-
BUILDPACK=${{ github.event.inputs.buildpack || 'hackmdio/buildpack:16.20.2-58224661' }}
67+
RUNTIME=${{ github.event.inputs.runtime || 'hackmdio/runtime:16.20.2-35fe7e39' }}
68+
BUILDPACK=${{ github.event.inputs.buildpack || 'hackmdio/buildpack:16.20.2-35fe7e39' }}
7269
-
7370
name: Export digest
7471
run: |
@@ -105,6 +102,9 @@ jobs:
105102
uses: docker/metadata-action@v5
106103
with:
107104
images: ${{ env.REGISTRY_IMAGE }}
105+
tags: |
106+
type=match,pattern=\d.\d.\d
107+
type=sha,prefix=
108108
-
109109
name: Login to Docker Hub
110110
uses: docker/login-action@v3

0 commit comments

Comments
 (0)