Merge pull request 'Match image name with repo name' (#46) from refactor-registry into main
All checks were successful
Playwright Tests / test (push) Successful in 4m49s
Build Nginx-based docker image / build-static-assets (push) Successful in 8m47s

Reviewed-on: #46
This commit is contained in:
bustikiller 2024-09-07 14:09:41 +00:00
commit 118a42fb31

View File

@ -1,4 +1,4 @@
name: Build docker image
name: Build Nginx-based docker image
on:
push:
branches:
@ -14,18 +14,20 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
- name: Login to the private Docker registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ${{ secrets.PRIVATE_REGISTRY_HOST }}
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: bustikiller/wedding-planner-frontend:latest
tags: |
${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-from: type=registry,ref=user/app:latest
cache-to: type=inline