Skip to content

release

release #16

Workflow file for this run

name: release
on:
release:
types: [ created ]
permissions:
contents: write
jobs:
release:
strategy:
matrix:
platform: [ ubuntu-latest ]
goos: [ linux, windows, darwin ]
goarch: [ amd64, arm64 ]
exclude:
- goarch: arm64
goos: windows
name: Release
runs-on: ${{ matrix.platform }}
steps:
- name: Show environment
run: export
- name: Checkout
uses: actions/checkout@v4
- name: go release matrix
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goversion: "go.mod"
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: "make all"
extra_files: README.md LICENSE
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: potoo0/configurable-http-proxy
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}