This commit is contained in:
parent
c1d809255e
commit
b65755797e
8
.github/workflows/sqlx.yml
vendored
8
.github/workflows/sqlx.yml
vendored
@ -10,6 +10,7 @@ on:
|
||||
|
||||
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 }}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user