Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 8a7ab7f

Browse files
authored
chore:add-release-created-trigger-for-build (#16)
* chore:add-release-created-trigger-for-build * chore:rename-ci-checks-job
1 parent 4882b5a commit 8a7ab7f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Copyright 2021 ChainSafe Systems
22
# SPDX-License-Identifier: LGPL-3.0-only
33

4-
name: CI
5-
64
on:
75
pull_request:
86
types: [opened, synchronize, reopened]
97
push:
108
branches:
119
- main
1210

11+
name: CI Checks
1312
jobs:
14-
build:
13+
ci-checks:
1514
strategy:
1615
matrix:
1716
go-version: [ 1.17.x ]

.github/workflows/docker-build-push.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@ name: Build and publish Docker image
66
on:
77
push:
88
branches:
9+
# when main branch receives a push
910
- main
10-
11+
# when any of these versions receive a push
12+
tags:
13+
- "v*.*.*"
14+
# when any releases are created
15+
release:
16+
types:
17+
- created
1118
env:
1219
REGISTRY: ghcr.io
1320
IMAGE_NAME: ${{ github.repository }}

0 commit comments

Comments
 (0)