pass sqlx version into dockerfile
Publish SQLx container / publish (push) Successful in 4m39s Details

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

View File

@ -39,7 +39,6 @@ jobs:
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
@ -48,4 +47,5 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ env.VERSION }}

View File

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