Skip to content

Commit

Permalink
[fix CI/CD pipeline]
Browse files Browse the repository at this point in the history
  • Loading branch information
alvo254 committed Jun 10, 2024
1 parent 1fe2a16 commit dc27b7a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,16 @@ jobs:
- name: list dirs
run: |
ls -la
ls frontend/
ls frontend

- name: Build, tag, and push image to Docker Hub
env:
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $DOCKER_USERNAME/$DOCKER_REPOSITORY:$IMAGE_TAG -f frontend/Dockerfile .
docker push $DOCKER_USERNAME/$DOCKER_REPOSITORY:v1.0.0
echo "image=$DOCKER_USERNAME/$DOCKER_REPOSITORY:v1.0.0" >> $GITHUB_ENV
docker push $DOCKER_USERNAME/$DOCKER_REPOSITORY:$IMAGE_TAG
echo "image=$DOCKER_USERNAME/$DOCKER_REPOSITORY:$IMAGE_TAG" >> $GITHUB_ENV
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
Expand Down

0 comments on commit dc27b7a

Please sign in to comment.