mirror of
https://github.com/kha7iq/pingme.git
synced 2025-05-16 06:40:12 -07:00
chore: bump action version
This commit is contained in:
parent
98891789cf
commit
5220398da3
47
.github/workflows/build.yml
vendored
47
.github/workflows/build.yml
vendored
@ -2,10 +2,6 @@ name: build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# branches:
|
|
||||||
# - 'master'
|
|
||||||
# paths-ignore:
|
|
||||||
# - '**.md'
|
|
||||||
tags:
|
tags:
|
||||||
- 'v0.[0-9]+.[0-9]'
|
- 'v0.[0-9]+.[0-9]'
|
||||||
|
|
||||||
@ -15,46 +11,31 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Checkout
|
||||||
name: Checkout
|
uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
-
|
|
||||||
name: Set up Go
|
|
||||||
uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: '1.16'
|
|
||||||
-
|
|
||||||
name: Cache Go modules
|
|
||||||
uses: actions/cache@v2.1.5
|
|
||||||
with:
|
|
||||||
path: ~/go/pkg/mod
|
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-
|
|
||||||
-
|
|
||||||
name: Diff
|
|
||||||
run: git diff
|
|
||||||
|
|
||||||
-
|
- name: Set up Go
|
||||||
name: Docker login GHCR
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '>=1.20.0'
|
||||||
|
|
||||||
|
- name: Docker login GHCR
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
-
|
- name: Docker Login DockerHub
|
||||||
name: Docker Login DockerHub
|
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
-
|
- name: Release PingMe
|
||||||
name: Release PingMe
|
uses: goreleaser/goreleaser-action@v3
|
||||||
uses: goreleaser/goreleaser-action@v2
|
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --rm-dist
|
||||||
@ -62,8 +43,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
AUR_SSH_PRIVATE_KEY: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
AUR_SSH_PRIVATE_KEY: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
-
|
- name: Notify on failure
|
||||||
name: Notify on failure
|
|
||||||
uses: kha7iq/pingme-action@v1
|
uses: kha7iq/pingme-action@v1
|
||||||
if: failure()
|
if: failure()
|
||||||
env:
|
env:
|
||||||
@ -74,8 +54,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
service: telegram
|
service: telegram
|
||||||
|
|
||||||
-
|
- name: Notify on success
|
||||||
name: Notify on success
|
|
||||||
uses: kha7iq/pingme-action@v1
|
uses: kha7iq/pingme-action@v1
|
||||||
if: success()
|
if: success()
|
||||||
env:
|
env:
|
||||||
|
12
.github/workflows/pull_request.yml
vendored
12
.github/workflows/pull_request.yml
vendored
@ -1,12 +0,0 @@
|
|||||||
on: pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint-code:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Perform Checks
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: golangci-lint
|
|
||||||
uses: golangci/golangci-lint-action@v3
|
|
Loading…
x
Reference in New Issue
Block a user