diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 0e1c5f3..5ea724a 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -5,12 +5,12 @@ on: workflow_call: inputs: push: - description: Should the images be pushed + description: "Should the images be pushed" default: true required: false type: boolean version: - description: The version used when tagging the image + description: "The version used when tagging the image" default: 'dev' required: false type: string @@ -35,14 +35,12 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - if: ${{ inputs.push }} - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - if: ${{ inputs.push }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -51,7 +49,7 @@ jobs: uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64 - push: ${{ inputs.push }} + push: true tags: | ${{ env.DOCKERHUB_REPO }}:${{ inputs.version }} ${{ env.GHCR_REPO }}:${{ inputs.version }}