Skip to content

3.19.0

3.19.0 #29

Workflow file for this run

name: Release docker image
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
permissions:
packages: write # required to publish docker image
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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 }}/geotrek-rando
- name: Extract metadata (tags, labels) for Docker
id: meta-builder
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/geotrek-rando-builder
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: frontend
file: ./frontend/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Docker image builder
uses: docker/build-push-action@v5
with:
context: frontend
file: ./frontend/Dockerfile
push: true
tags: ${{ steps.meta-builder.outputs.tags }}
labels: ${{ steps.meta-builder.outputs.labels }}
target: builder