2020-11-29 09:23:00 -05:00
|
|
|
name: Dashboard image
|
2020-11-06 07:51:23 -05:00
|
|
|
|
2020-11-29 09:17:40 -05:00
|
|
|
on:
|
|
|
|
push:
|
2020-11-29 09:27:26 -05:00
|
|
|
branches:
|
|
|
|
- "master"
|
2020-11-29 09:17:40 -05:00
|
|
|
paths-ignore:
|
2021-01-21 09:56:20 -05:00
|
|
|
- "cmd/playground/**"
|
2020-11-29 09:17:40 -05:00
|
|
|
- "cmd/agent/**"
|
2020-12-12 12:55:35 -05:00
|
|
|
- ".github/workflows/agent.yml"
|
2021-01-18 20:59:04 -05:00
|
|
|
- ".github/ISSUE_TEMPLATE/**"
|
2021-01-21 09:56:20 -05:00
|
|
|
- ".goreleaser.yml"
|
|
|
|
- ".gitignore"
|
|
|
|
- "script/**"
|
|
|
|
- "*.md"
|
2020-11-06 07:51:23 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
2020-11-11 09:21:16 -05:00
|
|
|
|
|
|
|
- name: Log into registry
|
2020-11-11 22:12:30 -05:00
|
|
|
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
|
2020-11-11 09:21:16 -05:00
|
|
|
|
2020-11-29 09:17:40 -05:00
|
|
|
- name: Build and push dasbboard image
|
2020-11-06 07:51:23 -05:00
|
|
|
run: |
|
2020-12-30 08:28:57 -05:00
|
|
|
go test -v ./...
|
2021-01-18 20:59:04 -05:00
|
|
|
docker build -t ghcr.io/${{ github.repository_owner }}/nezha-dashboard -f Dockerfile .
|
2020-11-11 22:12:30 -05:00
|
|
|
docker push ghcr.io/${{ github.repository_owner }}/nezha-dashboard
|