From 84ca69666a82d309e9897c204829eb3e3306423d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Str=C3=BCmpf?= <33258365+kstruempf@users.noreply.github.com> Date: Sun, 20 Feb 2022 14:54:12 +0100 Subject: [PATCH] docs: fix build badge in README.md (#127) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added github action for publishing docker images * Added github action for publishing docker images * Updated docker up repo name * Upgraded to action build-push-action@v2 * Upgraded to action build-push-action@v2 * Correctly logging into github registry * Added prepare step and setting imgage labels * Pushing image to GHCR and Docker Hub * Docker publish 'needs' tests to be run * Only running docker pipeline on master * ci: join docker build and go tests to one ci pipeline * ci: move docker release to dedicated ci pipeline and triggering pipeline on new version tags * docs: add hint for developers to use conventional commits * fix(ci): never push images during build job * fix(ci): change docker release trigger to run on creation of version tags See https://github.com/actions/runner/issues/1007 * fix(ci): change docker release trigger to run on creation and push of version tags See https://github.com/actions/runner/issues/1007 and https://github.com/docker/metadata-action#basic * fix(ci): release branch is master not main * fix(ci): run workflow anytime someone creates a branch or tag See: https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#create * ci: use GitHubActions cache for docker images * ci: move docker release to test-build-release.yml and use semver tag for images * ci: setup buildx in release * ci: push to GHCR on release add pre-release option for releases * ci: push to GHCR on release add pre-release option for releases * ci: add push to DuckerHub * ci: no organization prefix for docker hub * ci: move go release to test-build-release.yml so that artifacts can be included in GitHub release * ci: fix go releaser version * ci: keep dist and setting git tag before goreleaser * ci: keep dist and setting git tag before goreleaser * ci: provide commit ref for release instead of tag * ci: use both tag and commit ref * ci: remove git tag after go release * ci: create release from conventional commit change loge before running gorelease * ci: set tag before gorelease * ci: delete release-go.yml * ci: pre-release tag for github release * ci: checking release_type for tagging as prerelease indicator * ci: fix version of ncipollo/release-action * ci: setup buildx in release * ci: push to GHCR on release add pre-release option for releases * ci: add push to DuckerHub * ci: no organization prefix for docker hub * ci: move go release to test-build-release.yml so that artifacts can be included in GitHub release * ci: fix go releaser version * ci: keep dist and setting git tag before goreleaser * ci: keep dist and setting git tag before goreleaser * ci: provide commit ref for release instead of tag * ci: use both tag and commit ref * ci: remove git tag after go release * ci: create release from conventional commit change loge before running gorelease * ci: set tag before gorelease * ci: delete release-go.yml * ci: pre-release tag for github release * ci: checking release_type for tagging as prerelease indicator * ci: fix version of ncipollo/release-action * ci: also run test and build on PRs into 'pre-release' * docs: fix build badge in README.md * chore: fix comment in pipeline Co-authored-by: Konstantin Strümpf <33258365+SirPumpkinHead@users.noreply.github.com> --- .github/workflows/test-build-release.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build-release.yml b/.github/workflows/test-build-release.yml index d7bc2cad..e126208d 100644 --- a/.github/workflows/test-build-release.yml +++ b/.github/workflows/test-build-release.yml @@ -76,7 +76,7 @@ jobs: release_branches: master pre_release_branches: pre-release - # Build Docker Images for GHCR + # Build Docker Images - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@master diff --git a/README.md b/README.md index d545718b..fcf4a3ac 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Discord](https://img.shields.io/discord/800456341088370698?label=discord&logo=discord)](https://discord.gg/r98YPRsZAx) [![Docker Pulls](https://img.shields.io/docker/pulls/haveachin/infrared?logo=docker)](https://hub.docker.com/r/haveachin/infrared) -![build](https://github.com/haveachin/infrared/actions/workflows/test.yml/badge.svg) +![build](https://github.com/haveachin/infrared/actions/workflows/test-build-release.yml/badge.svg) [![GitHub](https://img.shields.io/github/license/haveachin/infrared)](https://raw.githubusercontent.com/haveachin/infrared/master/LICENSE) # Infrared - a Minecraft Proxy