Skip to content

Commit

Permalink
ci: use recent version configure-aws-credentials action
Browse files Browse the repository at this point in the history
  • Loading branch information
rosado committed Jul 25, 2024
1 parent 020b88d commit 2e4e9d0
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions .github/workflows/deploy-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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

0 comments on commit 2e4e9d0

Please sign in to comment.