From 2cc6130143355c2e02c4b930039e586485198b9c Mon Sep 17 00:00:00 2001 From: Clemens Rudert Date: Wed, 22 Jan 2025 21:50:46 +0100 Subject: [PATCH] add build task for dev image release --- .github/workflows/image-dev.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/image-dev.yml diff --git a/.github/workflows/image-dev.yml b/.github/workflows/image-dev.yml new file mode 100644 index 0000000..22a88d1 --- /dev/null +++ b/.github/workflows/image-dev.yml @@ -0,0 +1,32 @@ +name: Build Docker Image DEV + +on: + push: + branches: + - master + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build release + uses: docker/build-push-action@v6 + with: + context: . + push: true + target: dev + cache-from: type=local,src=cache + tags: ghcr.io/${{ github.repository }}-dev:latest