diff --git a/.github/workflows/builder.yaml b/.github/workflows/builder.yaml index e8aff36..7835631 100644 --- a/.github/workflows/builder.yaml +++ b/.github/workflows/builder.yaml @@ -33,17 +33,35 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Lower case for ghcr + id: ghcr_string + uses: ASzc/change-string-case-action@v1 + with: + string: ${{ github.event.repository.full_name }} + - name: Build and push uses: docker/build-push-action@v2 with: context: . platforms: linux/arm,linux/amd64,linux/arm64 push: true - tags: webpsh/webp-server-go + tags: | + webpsh/webp_server_go + webpsh/webp-server-go + webpsh/webps + ghcr.io/${{ steps.ghcr_string.outputs.lowercase }} + cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - name: Move cache run: | rm -rf /tmp/.buildx-cache - mv /tmp/.buildx-cache-new /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3e9964c..4334e78 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,7 +3,7 @@ on: tags: - '*' -name: Release WebP Server Go Binaries +name: Release Binaries jobs: build: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 793d8fe..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: go - -go: - - 1.15.4 - - 1.16.x - -env: GO111MODULE=on -arch: - - amd64 - - arm64 -os: - - windows - - osx - - linux - -script: sh scripts/build.sh $TRAVIS_OS_NAME $TRAVIS_CPU_ARCH - -jobs: - include: - - stage: "Unit Tests" - arch: - - amd64 - os: - - linux - script: - - make test - -deploy: - provider: releases - api_key: $GITHUB_OAUTH_TOKEN - file_glob: true - file: builds/* - skip_cleanup: true - on: - repo: webp-sh/webp_server_go - tags: true - branch: master - -after_success: - - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index 6b31710..87063c6 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@

- +[![CI](https://github.com/webp-sh/webp_server_go/actions/workflows/CI.yaml/badge.svg)](https://github.com/webp-sh/webp_server_go/actions/workflows/CI.yaml) +[![build docker image](https://github.com/webp-sh/webp_server_go/actions/workflows/builder.yaml/badge.svg)](https://github.com/webp-sh/webp_server_go/actions/workflows/builder.yaml) +[![Release WebP Server Go Binaries](https://github.com/webp-sh/webp_server_go/actions/workflows/release.yaml/badge.svg)](https://github.com/webp-sh/webp_server_go/actions/workflows/release.yaml) [![codecov](https://codecov.io/gh/webp-sh/webp_server_go/branch/master/graph/badge.svg?token=VR3BMZME65)](https://codecov.io/gh/webp-sh/webp_server_go) [Documentation](https://docs.webp.sh/) | [Website](https://webp.sh/)