Skip to content

Commit

Permalink
chore: testing other way to pass secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocroh committed May 13, 2024
1 parent 310e0ac commit 192702d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
jobs:
deploy:
runs-on: ubuntu-latest
env:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -23,7 +25,7 @@ jobs:
run: |
docker build -t $PROJECT --build-arg PROJECT=server .
docker tag $PROJECT:latest $DOCKER_REPO:latest
docker login -u $DOCKER_USERNAME -p ${{secrets.DOCKER_TOKEN}}
docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN
docker push $DOCKER_REPO:latest
- name: SSH into EC2 instance and deploy
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 192702d

Please sign in to comment.