mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
fix(ci): fix incorrect actions config (#1872)
This commit is contained in:
parent
6b57003a53
commit
2d7735fea6
2 changed files with 6 additions and 6 deletions
6
.github/workflows/release-dev.yaml
vendored
6
.github/workflows/release-dev.yaml
vendored
|
@ -11,10 +11,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20
|
go-version: 1.20.x
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
test:
|
test:
|
||||||
|
@ -24,7 +26,7 @@ jobs:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20
|
go-version: 1.20.x
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v -coverprofile coverage.out -covermode atomic ./...
|
run: go test -v -coverprofile coverage.out -covermode atomic ./...
|
||||||
- name: Publish coverage
|
- name: Publish coverage
|
||||||
|
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -2,9 +2,7 @@ name: Release (Production)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
release:
|
push:
|
||||||
types:
|
|
||||||
- created
|
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
- '**/v[0-9]+.[0-9]+.[0-9]+'
|
- '**/v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
@ -59,7 +57,7 @@ jobs:
|
||||||
- lint
|
- lint
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
TAG: ${{ github.event.release.tag_name }}
|
TAG: ${{ github.ref_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue