Merge branch 'main' into feat/arm-build

This commit is contained in:
Lukas Jost authored and GitHub committed 2024-11-25 12:35:12 +01:00
commit 3763c4f6d1
40 files changed
+1052 -84

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
name: Build and Tag Docker Image on PR
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract PR number
id: pr-number
run: echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV
- name: Build and push Docker image
run: |
docker build --build-arg VERSION=pr-${{ env.PR_NUMBER }} \
-t ghcr.io/${{ github.repository }}:pr-${{ env.PR_NUMBER }} .