コミット
0ab53de79c
|
@ -1,93 +0,0 @@
|
|||
pipeline:
|
||||
dockerize:
|
||||
when:
|
||||
branch: main, master
|
||||
event: push
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
registry: https://codeberg.org/v2
|
||||
repo: codeberg.org/gothub/gothub
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tag: latest
|
||||
username:
|
||||
from_secret: user
|
||||
password:
|
||||
from_secret: passwd
|
||||
secrets: [user, passwd]
|
||||
#dockerize-arm64:
|
||||
# environment:
|
||||
# - GOOS=linux
|
||||
# - GOARCH=arm64
|
||||
# when:
|
||||
# branch: [main, master]
|
||||
# event: [push]
|
||||
# image: plugins/docker
|
||||
# settings:
|
||||
# registry: codeberg.org
|
||||
# repo: codeberg.org/gothub/gothub
|
||||
# username:
|
||||
# from_secret: user
|
||||
# password:
|
||||
# from_secret: passwd
|
||||
# # password = key or actual password
|
||||
# tags: arm64
|
||||
dockerize-dev:
|
||||
when:
|
||||
event: push
|
||||
branch: dev
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
registry: https://codeberg.org/v2
|
||||
repo: codeberg.org/gothub/gothub
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tag: dev
|
||||
username:
|
||||
from_secret: user
|
||||
password:
|
||||
from_secret: passwd
|
||||
secrets: [user, passwd]
|
||||
#dockerize-dev-arm64:
|
||||
# environment:
|
||||
# - ARCH=
|
||||
# - GOOS=linux
|
||||
# - GOARCH=arm64
|
||||
# when:
|
||||
# event: push
|
||||
# branch: dev
|
||||
# image: plugins/docker
|
||||
# settings:
|
||||
# registry: codeberg.org
|
||||
# repo: codeberg.org/gothub/gothub
|
||||
# username:
|
||||
# from_secret: user
|
||||
# password:
|
||||
# from_secret: passwd
|
||||
# # password = key or actual password
|
||||
# tags: ${CI_COMMIT_SHA:0:8}-arm64
|
||||
# dockerfile: Dockerfile-arm64
|
||||
# # You can thank the drone docker maintainer for not providing a buildx option.
|
||||
instancejson:
|
||||
image: python:3-bullseye
|
||||
secrets: [ssh_key, mail]
|
||||
when:
|
||||
path: "README.md"
|
||||
branch: dev
|
||||
commands:
|
||||
- git clone https://codeberg.org/gothub/gothub-instances instances
|
||||
- cd instances
|
||||
- pip install -r requirements.txt
|
||||
- ./main.py
|
||||
# SSH configuration
|
||||
- mkdir ~/.ssh
|
||||
- ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts
|
||||
- eval `ssh-agent`
|
||||
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
|
||||
# Git configuration
|
||||
- git clone git@codeberg.org:gothub/gothub-instances.git
|
||||
- git config --global user.email $MAIL
|
||||
- git config --global user.name "Woodpecker CI"
|
||||
- git add instances.json
|
||||
- git commit -m "Updated instances"
|
||||
- git push -u origin dev
|
|
@ -0,0 +1,17 @@
|
|||
pipeline:
|
||||
dockerize-dev:
|
||||
when:
|
||||
event: push
|
||||
branch: dev
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
registry: https://codeberg.org/v2
|
||||
repo: codeberg.org/gothub/gothub
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tag: dev
|
||||
username:
|
||||
from_secret: user
|
||||
password:
|
||||
from_secret: passwd
|
||||
secrets: [user, passwd]
|
|
@ -0,0 +1,17 @@
|
|||
pipeline:
|
||||
dockerize:
|
||||
when:
|
||||
branch: main, master
|
||||
event: push
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
registry: https://codeberg.org/v2
|
||||
repo: codeberg.org/gothub/gothub
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tag: latest
|
||||
username:
|
||||
from_secret: user
|
||||
password:
|
||||
from_secret: passwd
|
||||
secrets: [user, passwd]
|
|
@ -0,0 +1,25 @@
|
|||
# Credit to Hygna (https://codeberg.org/Hygna)
|
||||
pipeline:
|
||||
instancejson:
|
||||
image: python:3-bullseye
|
||||
secrets: [ssh_key, mail]
|
||||
when:
|
||||
path: "README.md"
|
||||
branch: dev
|
||||
commands:
|
||||
- git clone https://codeberg.org/gothub/gothub-instances instances
|
||||
- cd instances
|
||||
- pip install -r requirements.txt
|
||||
- ./main.py
|
||||
# SSH configuration
|
||||
- mkdir ~/.ssh
|
||||
- ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts
|
||||
- eval `ssh-agent`
|
||||
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
|
||||
# Git configuration
|
||||
- git clone git@codeberg.org:gothub/gothub-instances.git
|
||||
- git config --global user.email $MAIL
|
||||
- git config --global user.name "Woodpecker CI"
|
||||
- git add instances.json
|
||||
- git commit -m "Updated instances"
|
||||
- git push -u origin dev
|
読み込み中…
新しいイシューから参照