Compare commits
No commits in common. "main" and "3.20.9" have entirely different histories.
3 changed files with 7 additions and 104 deletions
|
@ -36,23 +36,13 @@ 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
|
||||||
|
|
||||||
|
docker-build:
|
||||||
webserver:
|
runs-on: host
|
||||||
env:
|
|
||||||
REPO_NAME: alpine-php8-webserver
|
|
||||||
needs:
|
needs:
|
||||||
- release
|
- release
|
||||||
outputs:
|
|
||||||
version: ${{ needs.release.outputs.version }}
|
|
||||||
runs-on: host
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
github-server-url: https://git.h2-invent.com
|
|
||||||
repository: Public-System-Design/${{ env.REPO_NAME }}
|
|
||||||
ref: main
|
|
||||||
path: ${{ env.REPO_NAME }}
|
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
@ -61,47 +51,8 @@ jobs:
|
||||||
username: ${{ secrets.FORGEJO_ACTION_PACKAGE_RW_USER }}
|
username: ${{ secrets.FORGEJO_ACTION_PACKAGE_RW_USER }}
|
||||||
password: ${{ secrets.FORGEJO_ACTION_PACKAGE_RW_KEY }}
|
password: ${{ secrets.FORGEJO_ACTION_PACKAGE_RW_KEY }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ./${{ env.REPO_NAME }}
|
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: git.h2-invent.com/public-system-design/ansible-php8-webserver:${{ needs.release.outputs.version }},git.h2-invent.com/public-system-design/ansible-php8-webserver:latest
|
||||||
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:
|
|
||||||
env:
|
|
||||||
REPO_NAME: alpine-php8-cron-webserver
|
|
||||||
needs:
|
|
||||||
- webserver
|
|
||||||
runs-on: host
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
github-server-url: https://git.h2-invent.com
|
|
||||||
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 }}
|
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
name: Build and Push Image
|
|
||||||
description: Builds and pushes a Docker image.
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
repo_name:
|
|
||||||
description: "Name of the repo (also used as build context path)"
|
|
||||||
required: true
|
|
||||||
version:
|
|
||||||
description: "Version tag"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: host
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
github-server-url: https://git.h2-invent.com
|
|
||||||
repository: Public-System-Design/${{ inputs.repo_name }}
|
|
||||||
ref: main
|
|
||||||
path: ${{ inputs.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: ./${{ inputs.repo_name }}
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.h2-invent.com/public-system-design/${{ inputs.repo_name }}:${{ inputs.version }}
|
|
||||||
git.h2-invent.com/public-system-design/${{ inputs.repo_name }}:latest
|
|
||||||
build-args: |
|
|
||||||
VERSION=${{ inputs.version }}
|
|
|
@ -57,7 +57,7 @@ http {
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri /index.php$is_args$args;
|
try_files $uri /index.php$is_args&$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Redirect server error pages to the static page /50x.html
|
# Redirect server error pages to the static page /50x.html
|
||||||
|
@ -66,14 +66,6 @@ http {
|
||||||
root /var/lib/nginx/html;
|
root /var/lib/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /theme/ {
|
|
||||||
alias /var/www/html/public/theme/;
|
|
||||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
|
||||||
expires 30d;
|
|
||||||
access_log off;
|
|
||||||
try_files $uri =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Pass the PHP scripts to PHP-FPM listening on socket
|
# Pass the PHP scripts to PHP-FPM listening on socket
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
|
Loading…
Add table
Reference in a new issue