Bump serde_json from 1.0.108 to 1.0.120 (#560) #408
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and upload container image | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_BUILD_TARGET: x86_64-unknown-linux-musl | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
SQLX_OFFLINE: true | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/[email protected] | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- uses: caizixian/[email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
target: ${{ env.CARGO_BUILD_TARGET }} | |
- run: sudo apt-get install -u musl-tools musl-dev libpq-dev protobuf-compiler | |
- run: npm install | |
- run: npm run build | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
tags: | | |
type=ref,event=branch | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |