tools/.github/workflows/sqlx.yml
Adrian Wannenmacher c1d809255e
All checks were successful
Publish SQLx container / publish (push) Successful in 22s
trigger sqlx action
2023-12-06 15:31:22 +01:00

44 lines
1.0 KiB
YAML

name: Publish SQLx container
on:
push:
branches:
- "main"
paths:
- "sqlx/"
- ".github/workflows/sqlx.yml"
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 }}/${{ secrets.REGISTRY_USER }}/${{ 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: ./sqlx
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}