Allow manual workflow trigger to push images
All checks were successful
Build and Push / build-all (push) Successful in 2m40s
All checks were successful
Build and Push / build-all (push) Successful in 2m40s
This commit is contained in:
parent
07a737c799
commit
e5734920d7
1 changed files with 5 additions and 5 deletions
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git .
|
||||
|
||||
- name: Login to Forgejo Registry
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
./backend
|
||||
|
||||
- name: Push Backend Image
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
docker push ${{ env.REGISTRY }}/${{ github.repository }}/backend:${{ github.sha }}
|
||||
docker push ${{ env.REGISTRY }}/${{ github.repository }}/backend:latest
|
||||
|
|
@ -66,7 +66,7 @@ jobs:
|
|||
./frontend
|
||||
|
||||
- name: Push Frontend Image
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
docker push ${{ env.REGISTRY }}/${{ github.repository }}/frontend:${{ github.sha }}
|
||||
docker push ${{ env.REGISTRY }}/${{ github.repository }}/frontend:latest
|
||||
|
|
@ -83,7 +83,7 @@ jobs:
|
|||
./chat-service
|
||||
|
||||
- name: Push Chat Service Image
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
docker push ${{ env.REGISTRY }}/${{ github.repository }}/chat-service:${{ github.sha }}
|
||||
docker push ${{ env.REGISTRY }}/${{ github.repository }}/chat-service:latest
|
||||
|
|
@ -100,7 +100,7 @@ jobs:
|
|||
./openresty
|
||||
|
||||
- name: Push OpenResty Image
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
docker push ${{ env.REGISTRY }}/${{ github.repository }}/openresty:${{ github.sha }}
|
||||
docker push ${{ env.REGISTRY }}/${{ github.repository }}/openresty:latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue