Match image name with repo name
All checks were successful
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 7m7s
Playwright Tests / test (pull_request) Successful in 10m6s

This commit is contained in:
Manuel Bustillo 2024-09-07 15:57:06 +02:00
parent 93df3e03bc
commit bae33974b3

View File

@ -1,4 +1,4 @@
name: Build docker image
name: Build Nginx-based docker image
on:
push:
branches:
@ -15,17 +15,19 @@ 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