Build docker image using github actions cont by Yukaii · Pull Request #1849 · hackmdio/codimd
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
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