From 319519b7e253fb6110d55c6fb3a1bef38c580e8f Mon Sep 17 00:00:00 2001 From: krateng Date: Wed, 15 Dec 2021 18:36:00 +0100 Subject: [PATCH] Adjusted Dockerhub workflow --- .github/workflows/dockerhub.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 5a1d54f..2e01779 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -2,13 +2,8 @@ name: Publish Docker image to Dockerhub on: push: - branches: - - 'master' tags: - '*.*.*' - # don't trigger if just updating docs - paths-ignore: - - '**.md' jobs: push_to_registry: @@ -17,14 +12,14 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v2 - + - name: Log in to Docker Hub if: github.event_name != 'pull_request' uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v3 @@ -37,7 +32,7 @@ jobs: type=semver,pattern={{version}} flavor: | latest=false - + - name: Build and push Docker image uses: docker/build-push-action@v2 with: @@ -45,4 +40,3 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} -