forked from github.com/GenderDysphoria.fyi
production branch.
This commit is contained in:
@@ -1,13 +1,8 @@
|
|||||||
name: Build and deploy website.
|
name: Build and deploy website.
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# paths:
|
|
||||||
# - "content/**"
|
|
||||||
# - "static/**"
|
|
||||||
# - "templates/**"
|
|
||||||
branches:
|
branches:
|
||||||
- "master"
|
- "master"
|
||||||
- "ci-testing"
|
|
||||||
- "production"
|
- "production"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -38,7 +33,7 @@ jobs:
|
|||||||
name: Checkout the docker build branch...
|
name: Checkout the docker build branch...
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ci-testing
|
ref: production
|
||||||
path: docker
|
path: docker
|
||||||
-
|
-
|
||||||
name: Install required system packages...
|
name: Install required system packages...
|
||||||
@@ -87,49 +82,6 @@ jobs:
|
|||||||
name: build_artifact
|
name: build_artifact
|
||||||
path: artifact.7z
|
path: artifact.7z
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
# job2:
|
|
||||||
# needs: job1
|
|
||||||
# name: Build new docker container with new site build...
|
|
||||||
# runs-on: catthehacker-ubuntu
|
|
||||||
# steps:
|
|
||||||
# -
|
|
||||||
# name: Install required system packages...
|
|
||||||
# run: |
|
|
||||||
# export DEBIAN_FRONTEND=noninteractive
|
|
||||||
# apt update
|
|
||||||
# apt upgrade -y
|
|
||||||
# apt install -y p7zip-full
|
|
||||||
# -
|
|
||||||
# name: Download artifact...
|
|
||||||
# uses: actions/download-artifact@v3
|
|
||||||
# with:
|
|
||||||
# path: /
|
|
||||||
# -
|
|
||||||
# run: |
|
|
||||||
# 7z x /build_artifact/artifact.7z /dist; ls /dist
|
|
||||||
# # -
|
|
||||||
# name: Checkout the docker build branch...
|
|
||||||
# uses: actions/checkout@v3
|
|
||||||
# with:
|
|
||||||
# ref: ci-testing
|
|
||||||
# -
|
|
||||||
# name: Set up docker buildx...
|
|
||||||
# uses: docker/setup-buildx-action@v3
|
|
||||||
# -
|
|
||||||
# name: Login to gitea registry
|
|
||||||
# uses: docker/login-action@v3
|
|
||||||
# with:
|
|
||||||
# registry: gitea.raer.me
|
|
||||||
# username: ${{ secrets.PRODUCTION_REGISTRY_USERNAME }}
|
|
||||||
# password: ${{ secrets.PRODUCTION_REGISTRY_TOKEN }}
|
|
||||||
# -
|
|
||||||
# name: Build and push docker image to gitea package store
|
|
||||||
# uses: docker/build-push-action@v5
|
|
||||||
# with:
|
|
||||||
# context: .docker/Dockerfile
|
|
||||||
# push: true
|
|
||||||
# platforms: linux/amd64
|
|
||||||
# tags: gitea.raer.me/${{ gitea.repository }}:${{ gitea.ref_name }}
|
|
||||||
|
|
||||||
job2:
|
job2:
|
||||||
needs: job1
|
needs: job1
|
||||||
|
|||||||
Reference in New Issue
Block a user