diff --git a/.github/workflows/push-image.yaml b/.github/workflows/push-image.yaml index ca734da..b9eadb7 100644 --- a/.github/workflows/push-image.yaml +++ b/.github/workflows/push-image.yaml @@ -30,7 +30,7 @@ jobs: password: ${{ secrets.DOCKER_PAT }} - name: Build and push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 id: push with: context: . diff --git a/.github/workflows/validate-dockerfile.yml b/.github/workflows/validate-dockerfile.yml new file mode 100644 index 0000000..ad0e041 --- /dev/null +++ b/.github/workflows/validate-dockerfile.yml @@ -0,0 +1,21 @@ +name: Validate Image Build with Dockerfile + +on: + pull_request: + branches: + - main + +jobs: + build-image: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Build Image + uses: docker/build-push-action@v6 + with: + context: . + push: false + tags: | + throwaway:latest