From 2e4e9d0665c79e452afff573cb911e737d3e2cb8 Mon Sep 17 00:00:00 2001 From: Roland Sadowski Date: Thu, 25 Jul 2024 12:55:59 +0100 Subject: [PATCH] ci: use recent version configure-aws-credentials action --- .github/workflows/deploy-to-dev.yml | 40 ++--------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index 72cdbcf7a..195c94d55 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -32,7 +32,7 @@ jobs: npm ci npx playwright install --with-deps - - uses: aws-actions/configure-aws-credentials@v1-node16 + - uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.DEPLOY_AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.DEPLOY_AWS_SECRET_ACCESS_KEY }} @@ -68,40 +68,4 @@ jobs: - id: stop-containers if: always() - run: docker compose -f docker-compose-real-backend.yml down - - # deploy: - # runs-on: ubuntu-latest - # environment: development - # env: - # DOCKER_REPO: ${{ secrets.DEPLOY_DOCKER_REPOSITORY }} - # steps: - # - uses: actions/checkout@v4 - - # - id: vars - # run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - # - run: | - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip -q awscliv2.zip - # sudo ./aws/install --update - # sudo apt-get update - # sudo apt-get install -y rsync - - # - uses: aws-actions/configure-aws-credentials@v1-node16 - # with: - # aws-access-key-id: ${{ secrets.DEPLOY_AWS_ACCESS_KEY_ID }} - # aws-secret-access-key: ${{ secrets.DEPLOY_AWS_SECRET_ACCESS_KEY }} - # aws-region: eu-west-2 - - # - uses: aws-actions/amazon-ecr-login@v1 - - # - run: docker pull $DOCKER_REPO:latest || echo "no current latest image" - - # - run: docker build --build-arg DEPLOY_TIME="$(date +%Y-%m-%dT%H:%M:%S)" --build-arg GIT_COMMIT="${{ steps.vars.outputs.sha_short }}" -t $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} . - - # - run: docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:latest - - # - run: docker push $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} - - # - run: docker push $DOCKER_REPO:latest + run: docker compose -f docker-compose-real-backend.yml down \ No newline at end of file