auto publish SQLx image

This commit is contained in:
Adrian Wannenmacher 2023-12-06 15:20:53 +01:00
parent 7754a6c08f
commit 8ee9e5d63b
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5

40
.github/workflows/sqlx.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Publish SQLx container
on:
push:
branches:
- "dev"
env:
IMAGE: tools-sqlx
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log into Registry
uses: docker/login-action@v2
with:
registry: ${{ vars.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Extract Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.REGISTRY }}/${{ env.IMAGE }}
labels: |
org.opencontainers.image.title=SQLx
org.opencontainers.image.description=SQLx in a container
- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}