All checks were successful
CI / Build nginx docker images (push) Successful in 21m54s
69 lines
2.3 KiB
YAML
69 lines
2.3 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'nginx/**'
|
|
- '.gitea/workflows/build-nginx.yaml'
|
|
jobs:
|
|
"Build nginx docker images":
|
|
runs-on: hostinger
|
|
steps:
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3.4.0
|
|
with:
|
|
driver: docker-container
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
-
|
|
name: Login to Gitea container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.woggioni.net
|
|
username: woggioni
|
|
password: ${{ secrets.PUBLISHER_TOKEN }}
|
|
-
|
|
name: Build and push nginx vanilla images
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: "{{defaultContext}}:nginx"
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
push: true
|
|
pull: true
|
|
ssh: default=/home/luser/.ssh/id_ed25519
|
|
tags: |
|
|
"gitea.woggioni.net/woggioni/nginx:latest"
|
|
"gitea.woggioni.net/woggioni/nginx:v1.29.1"
|
|
secrets: |
|
|
GIT_AUTH_TOKEN.github.com=${{ secrets.GH_ACCESS_TOKEN }}
|
|
build-args: |
|
|
NGINX_VERSION=1.29.1
|
|
NGINX_BRANCH=vanilla
|
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/nginx:buildx-vanilla
|
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/nginx:buildx-vanilla
|
|
-
|
|
name: Build and push nginx custom images
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: "{{defaultContext}}:nginx"
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
push: true
|
|
pull: true
|
|
ssh: default=/home/luser/.ssh/id_ed25519
|
|
tags: |
|
|
"gitea.woggioni.net/woggioni/nginx:woggioni"
|
|
"gitea.woggioni.net/woggioni/nginx:v1.29.1-woggioni"
|
|
secrets: |
|
|
GIT_AUTH_TOKEN.github.com=${{ secrets.GH_ACCESS_TOKEN }}
|
|
build-args: |
|
|
NGINX_VERSION=1.29.1
|
|
NGINX_BRANCH=woggioni
|
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/nginx:buildx-woggioni
|
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/nginx:buildx-woggioni
|