pass sqlx version into dockerfile
All checks were successful
Publish SQLx container / publish (push) Successful in 4m39s
All checks were successful
Publish SQLx container / publish (push) Successful in 4m39s
This commit is contained in:
parent
b65755797e
commit
f0e3598c0c
4
.github/workflows/sqlx.yml
vendored
4
.github/workflows/sqlx.yml
vendored
@ -39,7 +39,6 @@ jobs:
|
|||||||
type=semver,pattern={{version}},value=v${{ env.VERSION }}
|
type=semver,pattern={{version}},value=v${{ env.VERSION }}
|
||||||
type=semver,pattern={{major}}.{{minor}},value=v${{ env.VERSION }}
|
type=semver,pattern={{major}}.{{minor}},value=v${{ env.VERSION }}
|
||||||
type=semver,pattern={{major}}=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
|
||||||
@ -48,4 +47,5 @@ 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 }}
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ env.VERSION }}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
FROM rust:alpine as build
|
FROM rust:alpine as build
|
||||||
RUN apk add musl-dev
|
RUN apk add musl-dev
|
||||||
|
|
||||||
|
ARG VERSION
|
||||||
RUN cargo install sqlx-cli \
|
RUN cargo install sqlx-cli \
|
||||||
--version $VERSION \
|
--version $VERSION \
|
||||||
--no-default-features \
|
--no-default-features \
|
||||||
|
Loading…
Reference in New Issue
Block a user