Skip to content

Commit

Permalink
Docker compose push
Browse files Browse the repository at this point in the history
  • Loading branch information
xarantolus committed Nov 19, 2023
1 parent e9390b1 commit ac48fe4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker images
run: |
docker-compose build
docker tag frontend:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/frontend:latest
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/frontend:latest
docker tag backend:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/backend:latest
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/backend:latest
docker compose build
docker compose push

0 comments on commit ac48fe4

Please sign in to comment.