From cfe954620d46a0e2922c674a3b10f6a121c83258 Mon Sep 17 00:00:00 2001 From: Alexander Petrov Date: Tue, 12 Sep 2023 14:26:20 +0200 Subject: [PATCH] docker push job --- .github/workflows/build.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1e62e562..44b689a3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,6 +9,10 @@ jobs: "build": name: "build" runs-on: "ubuntu-20.04" + permissions: + packages: write + repository-projects: write + contents: write steps: - uses: "actions/checkout@v3" - uses: "actions/setup-java@v3" @@ -41,7 +45,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: "Build and push the Docker image" - run: "docker build processor --pull --tag ${IMAGE} . && docker push ${IMAGE}" + run: "docker build processor --pull --tag ${IMAGE} -f Dockerfile && docker push ${IMAGE}" # "deployAppToDev": # name: "Deploy app to dev" # needs: "build"