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 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: