Compare commits
No commits in common. "f8a6f4d245794f826636b7e6735f442901d0135f" and "1db83a600448e1649247928cc5e0db68d98c4230" have entirely different histories.
f8a6f4d245
...
1db83a6004
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -1,6 +1,8 @@
|
||||
name: Build Nginx-based docker image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
@ -28,7 +30,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
target: deps
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:deps
|
||||
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:deps
|
||||
cache-to: type=inline
|
||||
@ -38,16 +40,16 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
target: builder
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:builder
|
||||
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:builder
|
||||
cache-to: type=inline
|
||||
|
||||
- name: Build and push (final)
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
|
||||
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
|
||||
cache-to: type=inline
|
Loading…
x
Reference in New Issue
Block a user