From 8a7ab7fc852f198d4e20002fe8cb63df0304aab6 Mon Sep 17 00:00:00 2001 From: Kirill Date: Thu, 15 Dec 2022 15:34:55 -0300 Subject: [PATCH] chore:add-release-created-trigger-for-build (#16) * chore:add-release-created-trigger-for-build * chore:rename-ci-checks-job --- .github/workflows/ci.yml | 5 ++--- .github/workflows/docker-build-push.yml | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97e785c..05858af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,6 @@ # Copyright 2021 ChainSafe Systems # SPDX-License-Identifier: LGPL-3.0-only -name: CI - on: pull_request: types: [opened, synchronize, reopened] @@ -10,8 +8,9 @@ on: branches: - main +name: CI Checks jobs: - build: + ci-checks: strategy: matrix: go-version: [ 1.17.x ] diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 6aec903..83713a7 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -6,8 +6,15 @@ name: Build and publish Docker image on: push: branches: + # when main branch receives a push - main - + # when any of these versions receive a push + tags: + - "v*.*.*" + # when any releases are created + release: + types: + - created env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }}