Compare commits
9 commits
holzi1005-
...
main
Author | SHA1 | Date | |
---|---|---|---|
a82d1bb047 | |||
afda9d5414 | |||
523b49acb1 | |||
ecc81f1f12 | |||
1a7829f6ed | |||
ed0e028ade | |||
b839662c83 | |||
c77245ec85 | |||
bb42d0c786 |
2 changed files with 64 additions and 13 deletions
|
@ -36,22 +36,72 @@ 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: Build Webserver
|
- name: Checkout Repository
|
||||||
uses: ./.github/workflows/docker-build.yml
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repo_name: alpine-php8-webserver
|
github-server-url: https://git.h2-invent.com
|
||||||
version: ${{ needs.release.outputs.version }}
|
repository: Public-System-Design/${{ env.REPO_NAME }}
|
||||||
|
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: Build Cron-Webserver
|
- name: Checkout Repository
|
||||||
uses: ./.github/workflows/docker-build.yml
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repo_name: alpine-php8-cron-webserver
|
github-server-url: https://git.h2-invent.com
|
||||||
version: ${{ needs.release.outputs.version }}
|
repository: Public-System-Design/${{ env.REPO_NAME }}
|
||||||
|
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 }}
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,10 @@ inputs:
|
||||||
description: "Version tag"
|
description: "Version tag"
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
jobs:
|
||||||
using: "composite"
|
build:
|
||||||
steps:
|
runs-on: host
|
||||||
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue