Skip to content

⬆️ Bump github.com/testcontainers/testcontainers-go/modules/m… #97

⬆️ Bump github.com/testcontainers/testcontainers-go/modules/m…

⬆️ Bump github.com/testcontainers/testcontainers-go/modules/m… #97

Workflow file for this run

name: Build and Push Docker Images
on:
push:
branches: [main]
tags: ["v*.*.*"]
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
image:
- name: portal
dockerfile: portal.Dockerfile
- name: frontend
dockerfile: frontend.Dockerfile
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/traptitech/piscon-portal-v2/${{ matrix.image.name }}
tags: |
type=ref,event=branch
type=semver,pattern=v{{version}}
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.image.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max