-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,6 @@ name: build | |
|
||
on: | ||
push: | ||
# branches: | ||
# - 'master' | ||
# paths-ignore: | ||
# - '**.md' | ||
tags: | ||
- 'v0.[0-9]+.[0-9]' | ||
|
||
|
@@ -15,55 +11,39 @@ jobs: | |
env: | ||
DOCKER_CLI_EXPERIMENTAL: "enabled" | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.16' | ||
- | ||
name: Cache Go modules | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- | ||
name: Diff | ||
run: git diff | ||
|
||
- | ||
name: Docker login GHCR | ||
go-version: '>=1.20.0' | ||
|
||
- name: Docker login GHCR | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- | ||
name: Docker Login DockerHub | ||
- name: Docker Login DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- | ||
name: Release PingMe | ||
uses: goreleaser/goreleaser-action@v2 | ||
- name: Release PingMe | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
AUR_SSH_PRIVATE_KEY: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | ||
|
||
- | ||
name: Notify on failure | ||
- name: Notify on failure | ||
uses: kha7iq/pingme-action@v1 | ||
if: failure() | ||
env: | ||
|
@@ -74,8 +54,7 @@ jobs: | |
with: | ||
service: telegram | ||
|
||
- | ||
name: Notify on success | ||
- name: Notify on success | ||
uses: kha7iq/pingme-action@v1 | ||
if: success() | ||
env: | ||
|
This file was deleted.
Oops, something went wrong.