This commit is contained in:
Odyssey
2023-02-10 20:43:34 +01:00
2 changed files with 61 additions and 37 deletions
+58 -37
View File
@@ -1,20 +1,20 @@
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:
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
@@ -32,32 +32,30 @@ pipeline:
# 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:
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]
# event: push
# branch: dev
# image: plugins/docker
# settings:
# registry: codeberg.org
@@ -69,4 +67,27 @@ pipeline:
# # 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.
# # 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
+3
View File
@@ -43,6 +43,9 @@ If you are using Portainer or Podman, you know how to create the GotHub containe
### Manual
You will need an installation of Go 1.19+ installed on your system.
We recommend setting the `GO_TELEMETRY` environment variable to `off`. In the future, the Go CLI will send telemetry to Google, which you might not want.
```bash
git clone https://codeberg.org/gothub/gothub.git
cd gothub