From 8ee9e5d63ba1dfeb56f8051ec2851be74bd94388 Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Wed, 6 Dec 2023 15:20:53 +0100 Subject: [PATCH] auto publish SQLx image --- .github/workflows/sqlx.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/sqlx.yml diff --git a/.github/workflows/sqlx.yml b/.github/workflows/sqlx.yml new file mode 100644 index 0000000..13e611d --- /dev/null +++ b/.github/workflows/sqlx.yml @@ -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 }}