image metadata tagging
This commit is contained in:
parent
c095001fdd
commit
821e16f733
1 changed files with 7 additions and 5 deletions
|
@ -1,7 +1,4 @@
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'main'
|
|
||||||
jobs:
|
jobs:
|
||||||
build-container:
|
build-container:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
@ -11,10 +8,15 @@ jobs:
|
||||||
- run: apk add --no-cache nodejs git
|
- run: apk add --no-cache nodejs git
|
||||||
- name: login to container registry
|
- name: login to container registry
|
||||||
run: echo "${{ secrets.PACKAGE_PUBLISH_TOKEN }}" | docker login --username finn --password-stdin git.janky.solutions
|
run: echo "${{ secrets.PACKAGE_PUBLISH_TOKEN }}" | docker login --username finn --password-stdin git.janky.solutions
|
||||||
|
- uses: https://github.com/docker/metadata-action
|
||||||
|
id: meta
|
||||||
|
with:
|
||||||
|
images: git.janky.solutions/finn/lockserver
|
||||||
- name: build container image
|
- name: build container image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
file: Containerfile
|
file: Containerfile
|
||||||
tags: git.janky.solutions/finn/lockserver:latest
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: linux/amd64,linux/arm64,linux/armv7l
|
platforms: linux/amd64,linux/arm64,linux/armv7l
|
||||||
push: true
|
push: true
|
||||||
|
|
Loading…
Reference in a new issue