fix sqlx tags
Some checks failed
Publish SQLx container / publish (push) Failing after 16s

This commit is contained in:
Adrian Wannenmacher 2023-12-06 15:46:02 +01:00
parent c1d809255e
commit b65755797e
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
2 changed files with 10 additions and 2 deletions

View File

@ -6,10 +6,11 @@ on:
- "main" - "main"
paths: paths:
- "sqlx/" - "sqlx/"
- ".github/workflows/sqlx.yml" - ".github/workflows/sqlx.yml"
env: env:
IMAGE: tools-sqlx IMAGE: tools-sqlx
VERSION: 0.7.3
jobs: jobs:
publish: publish:
@ -33,6 +34,12 @@ jobs:
labels: | labels: |
org.opencontainers.image.title=SQLx org.opencontainers.image.title=SQLx
org.opencontainers.image.description=SQLx in a container org.opencontainers.image.description=SQLx in a container
org.opencontainers.image.version=${{ env.VERSION }}
tags: |
type=semver,pattern={{version}},value=v${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=v${{ env.VERSION }}
type=semver,pattern={{major}}=v${{ env.VERSION }}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and Push - name: Build and Push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
@ -41,3 +48,4 @@ jobs:
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}

View File

@ -1,7 +1,7 @@
FROM rust:alpine as build FROM rust:alpine as build
RUN apk add musl-dev RUN apk add musl-dev
RUN cargo install sqlx-cli \ RUN cargo install sqlx-cli \
--version 0.7.3 \ --version $VERSION \
--no-default-features \ --no-default-features \
-F postgres,rustls -F postgres,rustls