mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-29 03:55:41 +00:00
ed1230e17d
* wip: goreleaser * update image path * spelling * set working dir * change main.go * remove unused field * drop cgo requirement * remove unused workflow step * generate code * drop cgo from docker file * update publish workflow * annotate as unfinished
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: Publish Dockers
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
env:
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
|
|
jobs:
|
|
deploy:
|
|
name: "Deploy Nightly to Fly.io"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: superfly/flyctl-actions/setup-flyctl@master
|
|
- run: flyctl deploy --remote-only
|
|
|
|
publish-nightly:
|
|
name: "Publish Nightly"
|
|
if: github.event_name != 'release'
|
|
uses: hay-kot/homebox/.github/workflows/partial-publish.yaml@main
|
|
with:
|
|
tag: nightly
|
|
secrets:
|
|
GH_TOKEN: ${{ secrets.CR_PAT }}
|
|
|
|
publish-tag:
|
|
name: "Publish Tag"
|
|
if: github.event_name == 'release'
|
|
uses: hay-kot/homebox/.github/workflows/partial-publish.yaml@main
|
|
with:
|
|
release: true
|
|
tag: ${{ github.event.release.tag_name }}
|
|
secrets:
|
|
GH_TOKEN: ${{ secrets.CR_PAT }}
|
|
|
|
deploy-docs:
|
|
name: Deploy docs
|
|
needs:
|
|
- publish-tag
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout main
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Deploy docs
|
|
uses: mhausenblas/mkdocs-deploy-gh-pages@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CONFIG_FILE: docs/mkdocs.yml
|
|
EXTRA_PACKAGES: build-base
|