Skip to content

Commit

Permalink
v8.13
Browse files Browse the repository at this point in the history
- CI | Backport Gogs build workflow to master, required for workflow_dispatch trigger
  • Loading branch information
MichaIng committed Jan 21, 2023
1 parent c41b6db commit dbfd976
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gogs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: gogs
on: workflow_dispatch
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions: {}
jobs:
build:
# https://github.com/actions/virtual-environments
runs-on: ubuntu-22.04
steps:
# https://github.com/actions/setup-go/tags
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Build
run: |
apt-get update
apt-get -qq full-upgrade
apt-get -qq install zip 7zip
go install 'gogs.io/gogs@latest'
mkdir gogs
mv go/bin/gogs gogs/
zip -9r gogs_armv6.zip gogs
7zz a -mx=9 gogs_armv6l.7z gogs
- name: Upload
run: |
mkdir -pv .ssh
umask 377
echo '${{ secrets.KNOWN_HOSTS }}' > .ssh/known_hosts
echo '${{ secrets.SSH_KEY }}' > .ssh/id_ed25519
curl -T 'gogs_armv6*' --key .ssh/id_ed25519 'sftp://[email protected]:29248/all/'
curl 'https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_ZONE }}/purge_cache' -H 'Authorization: Bearer ${{ secrets.CF_TOKEN }}' -H 'Content-Type: application/json' \
--data '{"files":["https://dietpi.com/downloads/binaries/all/","https://dietpi.com/downloads/binaries/all/gogs_armv6.zip","https://dietpi.com/downloads/binaries/all/gogs_armv6l.7z"]}'

0 comments on commit dbfd976

Please sign in to comment.