Skip to content

Merge remote-tracking branch 'origin/main' #132

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #132

Workflow file for this run

name: Docker Build
on:
push:
branches: [ main ]
jobs:
docker:
name: Build Docker Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set lowercase repository name
run: echo "REPO_LC=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ env.REPO_LC }}:cibuild
ghcr.io/${{ env.REPO_LC }}:cibuild-${{ github.sha }}