Compare commits

..

3 Commits

Author SHA1 Message Date
Renovate Bot
0e2f19a3e0 Update dependency rubocop to v1.66.1
Some checks failed
Build Nginx-based docker image / build-static-assets (pull_request) Failing after 45s
Run unit tests / unit_tests (pull_request) Successful in 1m40s
2024-09-07 22:17:09 +00:00
f43dbf0570 Merge pull request 'Match image name with repo name' (#58) from refactor-registry into main
All checks were successful
Run unit tests / unit_tests (push) Successful in 1m22s
Build Nginx-based docker image / build-static-assets (push) Successful in 21m40s
Reviewed-on: #58
2024-09-07 14:29:37 +00:00
b4d80deeac Match image name with repo name
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 11m22s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 31m10s
2024-09-07 15:58:14 +02:00

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:latest
tags: |
${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-from: type=registry,ref=user/app:latest
cache-to: type=inline