Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Jul 13, 2024
1 parent 14fd764 commit 6867f50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GH_PAT }}

- name: Build and push Docker image
run: docker buildx build --push --tag ghcr.io/loftwah-demo/pirate_app/pirateapp:latest .
run: |
echo "${{ secrets.GH_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
GITHUB_TOKEN=${{ secrets.GH_PAT }} docker buildx build --secret id=GITHUB_TOKEN,src=/run/secrets/GITHUB_TOKEN -t ghcr.io/loftwah-demo/pirate_app/pirateapp:latest --push .
- name: Deploy to droplet
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 6867f50

Please sign in to comment.