mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-06 08:20:11 +00:00
Compare commits
No commits in common. "2ee0ed55f6bfba024442008f240f0597e9683810" and "f72def0399d73250c7de0bac8d2bbb237401a7f5" have entirely different histories.
2ee0ed55f6
...
f72def0399
72
.drone.yml
72
.drone.yml
@ -111,31 +111,21 @@ type: docker
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: manifest
|
- name: manifest
|
||||||
image: appleboy/drone-ssh
|
image: plugins/manifest
|
||||||
volumes:
|
|
||||||
- name: ssh_key
|
|
||||||
path: /root/drone_rsa
|
|
||||||
settings:
|
settings:
|
||||||
host:
|
username: hrfee
|
||||||
from_secret: ssh_host
|
password:
|
||||||
username:
|
from_secret: docker_key
|
||||||
from_secret: ssh_username
|
repo: hrfee/jfa-go
|
||||||
port:
|
target: hrfee/jfa-go:latest
|
||||||
from_secret: ssh_port
|
template: hrfee/jfa-go:manifest-latest-ARCH
|
||||||
volumes:
|
platforms:
|
||||||
- /root/.ssh/docker-build:/root/drone_rsa
|
- linux/amd64
|
||||||
key_path: /root/drone_rsa
|
- linux/arm64
|
||||||
command_timeout: 30m
|
- linux/armhf
|
||||||
script:
|
|
||||||
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create hrfee/jfa-go:latest --amend hrfee/jfa-go:manifest-latest-amd64 --amend hrfee/jfa-go:manifest-latest-arm64 --amend hrfee/jfa-go:manifest-latest-armhf
|
|
||||||
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push hrfee/jfa-go:latest
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
volumes:
|
|
||||||
- name: ssh_key
|
|
||||||
host:
|
|
||||||
path: /root/.ssh/docker-build
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- amd64-docker
|
- amd64-docker
|
||||||
- arm64-docker
|
- arm64-docker
|
||||||
@ -266,40 +256,22 @@ type: docker
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: manifest
|
- name: manifest
|
||||||
image: appleboy/drone-ssh
|
image: plugins/manifest
|
||||||
volumes:
|
|
||||||
- name: ssh_key
|
|
||||||
path: /root/drone_rsa
|
|
||||||
settings:
|
settings:
|
||||||
host:
|
username: hrfee
|
||||||
from_secret: ssh_host
|
password:
|
||||||
username:
|
from_secret: docker_key
|
||||||
from_secret: ssh_username
|
repo: hrfee/jfa-go
|
||||||
port:
|
target: hrfee/jfa-go:latest
|
||||||
from_secret: ssh_port
|
template: hrfee/jfa-go:manifest-unstable-ARCH
|
||||||
volumes:
|
platforms:
|
||||||
- /root/.ssh/docker-build:/root/drone_rsa
|
- linux/amd64
|
||||||
key_path: /root/drone_rsa
|
- linux/arm64
|
||||||
command_timeout: 30m
|
- linux/armhf
|
||||||
script:
|
|
||||||
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create hrfee/jfa-go:unstable --amend hrfee/jfa-go:manifest-unstable-amd64 --amend hrfee/jfa-go:manifest-unstable-arm64 --amend hrfee/jfa-go:manifest-unstable-armhf
|
|
||||||
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push hrfee/jfa-go:unstable
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- amd64-docker-git
|
- amd64-docker-git
|
||||||
- arm64-docker-git
|
- arm64-docker-git
|
||||||
- armhf-docker-git
|
- armhf-docker-git
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
- go1.16
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: ssh_key
|
|
||||||
host:
|
|
||||||
path: /root/.ssh/docker-build
|
|
||||||
---
|
---
|
||||||
name: jfa-go-pr
|
name: jfa-go-pr
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -38,6 +38,7 @@ func (app *appContext) loadConfig() error {
|
|||||||
app.config.Section("invite_emails").Key("email_text").SetValue(app.config.Section("invite_emails").Key("email_text").MustString(filepath.Join(app.localPath, "invite-email.txt")))
|
app.config.Section("invite_emails").Key("email_text").SetValue(app.config.Section("invite_emails").Key("email_text").MustString(filepath.Join(app.localPath, "invite-email.txt")))
|
||||||
|
|
||||||
app.config.Section("email_confirmation").Key("email_html").SetValue(app.config.Section("email_confirmation").Key("email_html").MustString(filepath.Join(app.localPath, "confirmation.html")))
|
app.config.Section("email_confirmation").Key("email_html").SetValue(app.config.Section("email_confirmation").Key("email_html").MustString(filepath.Join(app.localPath, "confirmation.html")))
|
||||||
|
fmt.Println(app.config.Section("email_confirmation").Key("email_html").String())
|
||||||
app.config.Section("email_confirmation").Key("email_text").SetValue(app.config.Section("email_confirmation").Key("email_text").MustString(filepath.Join(app.localPath, "confirmation.txt")))
|
app.config.Section("email_confirmation").Key("email_text").SetValue(app.config.Section("email_confirmation").Key("email_text").MustString(filepath.Join(app.localPath, "confirmation.txt")))
|
||||||
|
|
||||||
app.config.Section("notifications").Key("expiry_html").SetValue(app.config.Section("notifications").Key("expiry_html").MustString(filepath.Join(app.localPath, "expired.html")))
|
app.config.Section("notifications").Key("expiry_html").SetValue(app.config.Section("notifications").Key("expiry_html").MustString(filepath.Join(app.localPath, "expired.html")))
|
||||||
|
Loading…
Reference in New Issue
Block a user