Skip to content

Harmonise les cartes avec les statistiques de l'audit (#661) #51

Harmonise les cartes avec les statistiques de l'audit (#661)

Harmonise les cartes avec les statistiques de l'audit (#661) #51

name: Build backend container image
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "confiture-rest-api/**"
jobs:
build_backend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: "ghcr.io/disic/confiture/rest-api"
tags: |
type=schedule
# type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
# add sha
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: ./
file: Dockerfile.api
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}