From bfb3289bd5fc370772f8f9b90ecc5a96a193cc8e Mon Sep 17 00:00:00 2001 From: Will Norris Date: Sun, 21 Jun 2020 17:50:32 +0000 Subject: [PATCH] update default branch to master - fix URL for CI badge in README - add actions workflow to push 'main' branch to 'latest' docker image --- .github/workflows/docker-latest.yml | 18 ++++++++++++++++++ .../workflows/{docker.yml => docker-tags.yml} | 2 +- README.md | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docker-latest.yml rename .github/workflows/{docker.yml => docker-tags.yml} (92%) diff --git a/.github/workflows/docker-latest.yml b/.github/workflows/docker-latest.yml new file mode 100644 index 0000000..fb48f72 --- /dev/null +++ b/.github/workflows/docker-latest.yml @@ -0,0 +1,18 @@ +on: + push: + branches: + - 'main' +name: docker-publish-latest + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: willnorris/imageproxy + tags: latest diff --git a/.github/workflows/docker.yml b/.github/workflows/docker-tags.yml similarity index 92% rename from .github/workflows/docker.yml rename to .github/workflows/docker-tags.yml index b79e436..f0e02f7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker-tags.yml @@ -2,7 +2,7 @@ on: push: tags: - '*' -name: docker-publish +name: docker-publish-tags jobs: docker: diff --git a/README.md b/README.md index 02d5782..ba290c4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![GoDoc](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/willnorris.com/go/imageproxy) [![Test Status](https://github.com/willnorris/imageproxy/workflows/tests/badge.svg)](https://github.com/willnorris/imageproxy/actions?query=workflow%3Atests) -[![Test Coverage](https://codecov.io/gh/willnorris/imageproxy/branch/master/graph/badge.svg)](https://codecov.io/gh/willnorris/imageproxy) +[![Test Coverage](https://codecov.io/gh/willnorris/imageproxy/branch/main/graph/badge.svg)](https://codecov.io/gh/willnorris/imageproxy) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/2611/badge)](https://bestpractices.coreinfrastructure.org/projects/2611) imageproxy is a caching image proxy server written in go. It features: