2024-10-14 23:14:20 +00:00
|
|
|
on: [push]
|
|
|
|
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
|
|
|
|
- name: gather metadata for container image tags
|
|
|
|
uses: https://github.com/docker/metadata-action@v5
|
|
|
|
id: meta
|
|
|
|
with:
|
|
|
|
images: git.janky.solutions/finn/matrix-meshtastic-bridge
|
2024-10-14 23:27:43 +00:00
|
|
|
tags: |
|
|
|
|
type=schedule
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
type=semver,pattern={{major}}
|
|
|
|
type=ref,event=branch
|
|
|
|
type=sha
|
2024-10-14 23:14:20 +00:00
|
|
|
- name: build container image
|
2024-10-15 00:05:43 +00:00
|
|
|
uses: docker/build-push-action@v6
|
2024-10-14 23:14:20 +00:00
|
|
|
with:
|
|
|
|
file: Containerfile
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
push: ${{ github.ref == 'refs/heads/main' }}
|