From dbb200192b0b054e89195476a56c82f038cdfae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Wacker?= <3391614+sorenwacker@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:14:27 +0200 Subject: [PATCH 1/2] Update pythonpackage.yml --- .github/workflows/pythonpackage.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index e4dd945..21e2595 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -1,7 +1,10 @@ name: Python package -on: [push] - +on: + push: + branches: + - develop + jobs: build: From 970ef6c54ca0e4a8d9531974e438f9b4c8e134f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Wacker?= <3391614+sorenwacker@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:21:32 +0200 Subject: [PATCH 2/2] Update docker-image.yml --- .github/workflows/docker-image.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b4da6a0..41fd6c2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,24 +3,27 @@ name: Docker Image CI on: push: branches: - - dockerhub + - dockerhub # Trigger workflow on pushes to the dockerhub branch release: - types: [published] - workflow_dispatch: # Allows manual triggering if needed + types: [published] # Trigger workflow on new releases + workflow_dispatch: # Allows manual triggering from GitHub UI jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 + - name: Docker login env: DOCKER_USER: ${{ secrets.DOCKER_USER }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - run: | - echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin + run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin + - name: Build Docker Image run: docker build . --file Dockerfile --tag your-docker-repo/your-image:latest --no-cache + - name: Push Docker Image run: docker push your-docker-repo/your-image:latest