Skip to content

Commit 0a1f1bf

Browse files
authored
Merge pull request #115 from ferryproxy/ci/releases
Update releases ci
2 parents e2d581f + 64a6372 commit 0a1f1bf

File tree

14 files changed

+667
-287
lines changed

14 files changed

+667
-287
lines changed

.github/workflows/ferry-controller-image.yml

-70
This file was deleted.

.github/workflows/ferry-tunnel-image.yml

-70
This file was deleted.

.github/workflows/ferryctl-binary.yml

-24
This file was deleted.

.github/workflows/releases.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Releases
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
7+
env:
8+
PUSH: 'true'
9+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
11+
jobs:
12+
releases:
13+
runs-on: ubuntu-latest
14+
if: github.event_name != 'pull_request'
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: 1.18
21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@v2
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v2
25+
- name: Log into registry ${{ env.REGISTRY }}
26+
uses: docker/login-action@v2
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Build binary
32+
env:
33+
GH_RELEASE: ${{ github.repository }}
34+
IMAGE_PREFIX: ghcr.io/${{ github.repository }}
35+
run: |
36+
REF=${{ github.ref }}
37+
GIT_TAG="${REF##*/}" make cross-build
38+
- name: Build image
39+
env:
40+
IMAGE_PREFIX: ghcr.io/${{ github.repository }}
41+
run: |
42+
REF=${{ github.ref }}
43+
GIT_TAG="${REF##*/}" make cross-image

.github/workflows/test-cloud.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
go-version: 1.18
2020

2121
- run: |
22-
go build -o ferryctl ./cmd/ferryctl
22+
make build
23+
mv bin/*/*/ferryctl ./
2324
2425
- name: Upload ferryctl
2526
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)