Update .forgejo/workflows/build.yml
This commit is contained in:
parent
db37c3fb1b
commit
539e845ad0
1 changed files with 30 additions and 2 deletions
|
@ -36,7 +36,7 @@ jobs:
|
|||
git tag "${{ steps.version.outputs.version }}" -m "[forgejo-action-tag]"
|
||||
git push origin --tags
|
||||
|
||||
docker-build:
|
||||
webserver:
|
||||
runs-on: host
|
||||
needs:
|
||||
- release
|
||||
|
@ -55,4 +55,32 @@ jobs:
|
|||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: git.h2-invent.com/public-system-design/alpine-php8-webserver:${{ needs.release.outputs.version }},git.h2-invent.com/public-system-design/alpine-php8-webserver:latest
|
||||
tags: |
|
||||
git.h2-invent.com/public-system-design/alpine-php8-webserver:${{ needs.release.outputs.version }}
|
||||
git.h2-invent.com/public-system-design/alpine-php8-webserver:latest
|
||||
|
||||
|
||||
cron:
|
||||
runs-on: host
|
||||
needs:
|
||||
- webserver
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: Public-System-Design/alpine-php8-cron-webserver
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.h2-invent.com
|
||||
username: ${{ secrets.FORGEJO_ACTION_PACKAGE_RW_USER }}
|
||||
password: ${{ secrets.FORGEJO_ACTION_PACKAGE_RW_KEY }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: |
|
||||
git.h2-invent.com/public-system-design/alpine-php8-cron-webserver:${{ needs.release.outputs.version }}
|
||||
git.h2-invent.com/public-system-design/alpine-php8-cron-webserver:latest
|
||||
|
|
Loading…
Add table
Reference in a new issue