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