diff --git a/.github/workflows/galaxy_build.yml b/.github/workflows/galaxy_build.yml index 23b2559..8abae33 100644 --- a/.github/workflows/galaxy_build.yml +++ b/.github/workflows/galaxy_build.yml @@ -25,16 +25,14 @@ jobs: echo "DOCKER_HUB_USERNAME=${{ steps.fetch-vault-secret.outputs.secrets.DOCKER_HUB_USERNAME }}" >> $GITHUB_ENV echo "DOCKER_HUB_ACCESS_TOKEN=${{ steps.fetch-vault-secret.outputs.secrets.DOCKER_HUB_ACCESS_TOKEN }}" >> $GITHUB_ENV - - name: Login to Docker Hub - uses: docker/login-action@v1 + - name: Log in to Docker Hub + uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a with: username: ${{ env.DOCKER_HUB_USERNAME }} password: ${{ env.DOCKER_HUB_ACCESS_TOKEN }} - - - name: Push Docker Image - uses: docker/push-action@v2 + - name: Build and push Docker image + id: push + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: - login-server: docker.io - username: ${{ env.DOCKER_HUB_USERNAME }} - password: ${{ env.DOCKER_HUB_ACCESS_TOKEN }} - tags: user/my-docker-image:latest + context: . + file: ./Dockerfile