Skip to content

Commit

Permalink
ci: correct Dockerfile for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
newarifrh committed Jul 16, 2024
1 parent 124245b commit d8699cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
run: docker login ${{ secrets.DOCKER_REGISTRY_URL }} --username=${{ secrets.DOCKER_REGISTRY_USERNAME }} --password=${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Build and Push Docker Image
run: |
docker build --build-arg BUILD_HASH=$(git rev-parse --short HEAD) --no-cache -t sapa-mitra-frontend -f Dockerfile.production .
docker build --build-arg BUILD_HASH=$(git rev-parse --short HEAD) --no-cache -t sapa-mitra-frontend -f Dockerfile.staging .
docker tag sapa-mitra-frontend ${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REGISTRY_USERNAME }}/sapa-mitra-frontend:latest
docker push ${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REGISTRY_USERNAME }}/sapa-mitra-frontend:latest

0 comments on commit d8699cb

Please sign in to comment.