Skip to content

Bump actions/upload-artifact from 4 to 5 (#3805) #117

Bump actions/upload-artifact from 4 to 5 (#3805)

Bump actions/upload-artifact from 4 to 5 (#3805) #117

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Container Image
on:
push:
branches:
- develop
- master
- release
- staging/**
tags:
- "v[0-9]+.[0-9]+.[0-9]+-[0-9]+KW[0-9][0-9]"
- "v[0-9]+.[0-9]+.[0-9]+-[0-9]+KW[0-9][0-9]-HOTFIX-*"
- "v[0-9]+.[0-9]+.[0-9]+-[0-9]+KW[0-9][0-9]-TEST-*"
- "!v[0-9]+.[0-9]+.[0-9]+-[0-9]+KW[0-9][0-9]-RC*" # Don't release RCs
env:
REGISTRY: ghcr.io
jobs:
backend:
env:
IMAGE_NAME: ${{ github.repository }}-backend
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: true
# Fetch all tags
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=tag
type=ref,event=branch
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: backend.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
frontend:
env:
IMAGE_NAME: ${{ github.repository }}-frontend
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: true
# Fetch all tags
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=tag
type=ref,event=branch
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: frontend.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}