Skip to content

Commit

Permalink
Update releases ci
Browse files Browse the repository at this point in the history
Signed-off-by: Shiming Zhang <[email protected]>
  • Loading branch information
wzshiming committed Aug 31, 2022
1 parent e2d581f commit 64a6372
Show file tree
Hide file tree
Showing 14 changed files with 667 additions and 287 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/ferry-controller-image.yml

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/ferry-tunnel-image.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/ferryctl-binary.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Releases
on:
push:
tags:
- v*

env:
PUSH: 'true'
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
releases:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build binary
env:
GH_RELEASE: ${{ github.repository }}
IMAGE_PREFIX: ghcr.io/${{ github.repository }}
run: |
REF=${{ github.ref }}
GIT_TAG="${REF##*/}" make cross-build
- name: Build image
env:
IMAGE_PREFIX: ghcr.io/${{ github.repository }}
run: |
REF=${{ github.ref }}
GIT_TAG="${REF##*/}" make cross-image
3 changes: 2 additions & 1 deletion .github/workflows/test-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
go-version: 1.18

- run: |
go build -o ferryctl ./cmd/ferryctl
make build
mv bin/*/*/ferryctl ./
- name: Upload ferryctl
uses: actions/upload-artifact@v2
Expand Down
Loading

0 comments on commit 64a6372

Please sign in to comment.