From 91e39681c2c1beb1afe739d44e13b625dc1dcab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Drobi=C4=87?= Date: Thu, 22 May 2025 16:48:59 +0200 Subject: [PATCH 1/2] adding initial yaml file with pull request access for testing purposes --- .github/workflows/docker-image.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..f4e1add --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,40 @@ +name: Docker Image CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Saves time by not fetching other branches + + - 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: Build and push Docker image + id: docker_build + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ghcr.io/${{ github.repository }}:latest + cache-from: type=gha + cache-to: type=gha,mode=max From da4e16cc6d4ba7e4a2629aa72eda4ec5964cd02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Drobi=C4=87?= Date: Thu, 22 May 2025 16:53:03 +0200 Subject: [PATCH 2/2] removed trigger for on pull request --- .github/workflows/docker-image.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f4e1add..8524a52 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,8 +3,6 @@ name: Docker Image CI on: push: branches: [ main ] - pull_request: - branches: [ main ] jobs: build-and-push: