mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
parent
35c9990e9e
commit
b75bcf35d3
22
.github/workflows/builder.yaml
vendored
22
.github/workflows/builder.yaml
vendored
@ -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
|
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -3,7 +3,7 @@ on:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
name: Release WebP Server Go Binaries
|
||||
name: Release Binaries
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
40
.travis.yml
40
.travis.yml
@ -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)
|
@ -1,8 +1,10 @@
|
||||
<p align="center">
|
||||
<img src="./pics/webp_server.png"/>
|
||||
</p>
|
||||
<img src="https://api.travis-ci.org/webp-sh/webp_server_go.svg?branch=master"/>
|
||||
|
||||
[](https://github.com/webp-sh/webp_server_go/actions/workflows/CI.yaml)
|
||||
[](https://github.com/webp-sh/webp_server_go/actions/workflows/builder.yaml)
|
||||
[](https://github.com/webp-sh/webp_server_go/actions/workflows/release.yaml)
|
||||
[](https://codecov.io/gh/webp-sh/webp_server_go)
|
||||
|
||||
[Documentation](https://docs.webp.sh/) | [Website](https://webp.sh/)
|
||||
|
Loading…
x
Reference in New Issue
Block a user