-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (46 loc) · 1.23 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
-
name: Set up Docker Buildx
uses: docker/[email protected]
-
name: Login to Github Actions
uses: docker/[email protected]
with:
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
registry: ghcr.io
-
name: Build and push
uses: docker/[email protected]
with:
context: .
pull: true
push: true
tags: ghcr.io/graynk/distortioner:latest
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ linux ]
goarch: [ amd64, arm64 ]
steps:
- uses: actions/[email protected]
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
compress_assets: false
project_path: "./app"
binary_name: "distortioner"