Compare commits
1 commit
main
...
holzi1005-
Author | SHA1 | Date | |
---|---|---|---|
51283f5880 |
1 changed files with 10 additions and 60 deletions
|
@ -36,72 +36,22 @@ jobs:
|
||||||
git tag "${{ steps.version.outputs.version }}" -m "[forgejo-action-tag]"
|
git tag "${{ steps.version.outputs.version }}" -m "[forgejo-action-tag]"
|
||||||
git push origin --tags
|
git push origin --tags
|
||||||
|
|
||||||
|
|
||||||
webserver:
|
webserver:
|
||||||
env:
|
|
||||||
REPO_NAME: alpine-php8-webserver
|
|
||||||
needs:
|
|
||||||
- release
|
|
||||||
outputs:
|
|
||||||
version: ${{ needs.release.outputs.version }}
|
|
||||||
runs-on: host
|
runs-on: host
|
||||||
|
needs: release
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Build Webserver
|
||||||
uses: actions/checkout@v4
|
uses: ./.github/workflows/docker-build.yml
|
||||||
with:
|
with:
|
||||||
github-server-url: https://git.h2-invent.com
|
repo_name: alpine-php8-webserver
|
||||||
repository: Public-System-Design/${{ env.REPO_NAME }}
|
version: ${{ needs.release.outputs.version }}
|
||||||
ref: main
|
|
||||||
path: ${{ env.REPO_NAME }}
|
|
||||||
|
|
||||||
- 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 Docker image
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: ./${{ env.REPO_NAME }}
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.h2-invent.com/public-system-design/${{ env.REPO_NAME }}:${{ needs.release.outputs.version }}
|
|
||||||
git.h2-invent.com/public-system-design/${{ env.REPO_NAME }}:latest
|
|
||||||
build-args: |
|
|
||||||
VERSION=${{ needs.release.outputs.version }}
|
|
||||||
|
|
||||||
cron:
|
cron:
|
||||||
env:
|
|
||||||
REPO_NAME: alpine-php8-cron-webserver
|
|
||||||
needs:
|
|
||||||
- webserver
|
|
||||||
runs-on: host
|
runs-on: host
|
||||||
|
needs: webserver
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Build Cron-Webserver
|
||||||
uses: actions/checkout@v4
|
uses: ./.github/workflows/docker-build.yml
|
||||||
with:
|
with:
|
||||||
github-server-url: https://git.h2-invent.com
|
repo_name: alpine-php8-cron-webserver
|
||||||
repository: Public-System-Design/${{ env.REPO_NAME }}
|
version: ${{ needs.release.outputs.version }}
|
||||||
ref: main
|
|
||||||
path: ${{ env.REPO_NAME }}
|
|
||||||
|
|
||||||
- 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 Docker image
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: ./${{ env.REPO_NAME }}
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.h2-invent.com/public-system-design/${{ env.REPO_NAME }}:${{ needs.webserver.outputs.version }}
|
|
||||||
git.h2-invent.com/public-system-design/${{ env.REPO_NAME }}:latest
|
|
||||||
build-args: |
|
|
||||||
VERSION=${{ needs.webserver.outputs.version }}
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue