Skip to content

Commit 6504d37

Browse files
committed
feat: update backend push workflow
1 parent e53506b commit 6504d37

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/backend-prod.yaml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
deploy:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
1417

1518
steps:
1619
- name: Checkout Repository
@@ -24,7 +27,7 @@ jobs:
2427
with:
2528
registry: ghcr.io
2629
username: ${{ github.actor }}
27-
password: ${{ secrets.GH_TOKEN }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
2831

2932
- name: Build and push Docker image
3033
uses: docker/build-push-action@v6
@@ -43,7 +46,7 @@ jobs:
4346
set -e
4447
4548
cd ~/Dashboard
46-
echo ${{ secrets.GH_TOKEN }} | sudo docker login ghcr.io -u bhaskaraa45 --password-stdin
49+
echo ${{ secrets.GITHUB_TOKEN }} | sudo docker login ghcr.io -u ${{ github.actor }} --password-stdin
4750
4851
echo "Stopping and removing all containers..."
4952
sudo docker rm -f $(sudo docker ps -aq) || true

0 commit comments

Comments
 (0)