From 192702daa15e45f4e645d563742f42878c6fefd2 Mon Sep 17 00:00:00 2001 From: Bruno Rodrigues Date: Mon, 13 May 2024 23:25:25 +0100 Subject: [PATCH] chore: testing other way to pass secrets --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3c2afc1..abedd02 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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