self host
This commit is contained in:
parent
aa47711033
commit
63689d75e4
1 changed files with 3 additions and 37 deletions
|
@ -9,9 +9,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: base-image
|
||||||
container:
|
|
||||||
image: docker.io/node:20-bookworm
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
info:
|
info:
|
||||||
|
@ -23,20 +21,6 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
-
|
|
||||||
name: Install Docker
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y ca-certificates curl jq
|
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
|
||||||
chmod a+r /etc/apt/keyrings/docker.asc
|
|
||||||
echo \
|
|
||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
|
|
||||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
||||||
-
|
-
|
||||||
name: Prepare Platform
|
name: Prepare Platform
|
||||||
run: |
|
run: |
|
||||||
|
@ -99,24 +83,8 @@ jobs:
|
||||||
|
|
||||||
publish-docker:
|
publish-docker:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: docker
|
runs-on: base-image
|
||||||
container:
|
|
||||||
image: docker.io/node:20-bookworm
|
|
||||||
steps:
|
steps:
|
||||||
-
|
|
||||||
name: Install Docker
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y ca-certificates curl jq
|
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
|
||||||
chmod a+r /etc/apt/keyrings/docker.asc
|
|
||||||
echo \
|
|
||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
|
|
||||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
||||||
-
|
-
|
||||||
name: Download digests
|
name: Download digests
|
||||||
uses: https://github.com/actions/download-artifact@v3
|
uses: https://github.com/actions/download-artifact@v3
|
||||||
|
@ -164,9 +132,7 @@ jobs:
|
||||||
|
|
||||||
publish-forgejo:
|
publish-forgejo:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: docker
|
runs-on: base-image
|
||||||
container:
|
|
||||||
image: node:20-bookworm
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/forgejo-release@v1
|
- uses: actions/forgejo-release@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue