From 9e16f12fa121cf1adcd0949c7f15bf9fe7fac626 Mon Sep 17 00:00:00 2001 From: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com> Date: Fri, 4 Oct 2024 03:36:15 +0600 Subject: [PATCH] Update deploy.yml Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com> --- .github/workflows/deploy.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8aec96f..2c24804 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,9 @@ name: 'Deploy with Terraform' on: workflow_dispatch -permissions: read-all +permissions: + packages: write + contents: read jobs: terraform: @@ -18,19 +20,19 @@ jobs: uses: actions/checkout@v4.1.2 - name: Setup Terraform - uses: hashicorp/setup-terraform@v3.1.2 + uses: hashicorp/setup-terraform@v3.1.12 - name: Authenticate to GitHub Container Registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} # Use PAT if necessary - name: Build and push Docker image to GHCR run: | - docker build -t ghcr.io/${{ github.repository }}/scheduled-feeds:latest . - docker push ghcr.io/${{ github.repository }}/scheduled-feeds:latest + docker build -t ghcr.io/khulnasoft-lab/package-feeds/scheduled-feeds:latest . + docker push ghcr.io/khulnasoft-lab/package-feeds/scheduled-feeds:latest - name: Terraform Init run: terraform init @@ -57,4 +59,4 @@ jobs: --platform managed \ --region us-central1 \ --max-instances=1 \ - --image ghcr.io/${{ github.repository }}/scheduled-feeds:latest; + --image ghcr.io/khulnasoft-lab/package-feeds/scheduled-feeds:latest;