Skip to content

Commit

Permalink
Support gitea
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Jun 14, 2022
1 parent 3e63247 commit d2ad711
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/push-to-gitea.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## gitea に同期する用の actions
name: main

on:
push:
branches:
- 'main'

env:
GITEA_SSH_URL: 'ssh://[email protected]:2200/hackathon-22-spring-16/back-end.git'

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set config
run: |
echo "${{ secrets.GITEA_TOKEN }}" > ~/deploy_key.pem
chmod 600 ~/deploy_key.pem
git config --local user.email "github@actions"
git config --local user.name "github"
- name: Push changes
env:
GIT_SSH_COMMAND: ssh -i ~/deploy_key.pem -o StrictHostKeyChecking=no -F /dev/null
run: |
git fetch --unshallow origin
git push -f ${{ env.GITEA_SSH_URL }} main:master
18 changes: 18 additions & 0 deletions showcase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
type: runtime

startup: |
go mod download
go build -o main
entrypoint: ./main

http_proxy: 3000

https: hard

# cname:
# TODO

use_mariadb: true

branch:
main:

0 comments on commit d2ad711

Please sign in to comment.