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"
paths:
- "sqlx/"
- ".github/workflows/sqlx.yml"
- ".github/workflows/sqlx.yml"
env:
IMAGE: tools-sqlx
VERSION: 0.7.3
jobs:
publish:
@ -33,6 +34,12 @@ jobs:
labels: |
org.opencontainers.image.title=SQLx
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
uses: docker/build-push-action@v4
@ -41,3 +48,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

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