2024-04-24 01:07:32 +00:00
|
|
|
on: [push]
|
2024-04-24 00:34:57 +00:00
|
|
|
jobs:
|
|
|
|
build-container:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: library/docker:dind
|
|
|
|
steps:
|
|
|
|
- run: apk add --no-cache nodejs git
|
|
|
|
- name: login to container registry
|
|
|
|
run: echo "${{ secrets.PACKAGE_PUBLISH_TOKEN }}" | docker login --username finn --password-stdin git.janky.solutions
|
2024-11-23 03:50:18 +00:00
|
|
|
- name: gather metadata for container image tags
|
|
|
|
uses: https://github.com/docker/metadata-action@v5
|
2024-04-24 01:07:32 +00:00
|
|
|
id: meta
|
|
|
|
with:
|
|
|
|
images: git.janky.solutions/finn/lockserver
|
2024-04-24 01:00:03 +00:00
|
|
|
- name: build container image
|
2024-09-08 08:02:34 +00:00
|
|
|
uses: docker/build-push-action@v6
|
2024-04-24 00:34:57 +00:00
|
|
|
with:
|
|
|
|
file: Containerfile
|
2024-04-24 01:07:32 +00:00
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
2024-04-24 04:22:19 +00:00
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
2024-04-24 00:34:57 +00:00
|
|
|
push: true
|