Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
snail committed Oct 24, 2024
1 parent e6e7da7 commit ddfdcc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v2

- name: Set variables
id: variables
id: vars
run: |
tag=`basename ${{ github.ref }}`
# golang_version=1.22
Expand All @@ -34,13 +34,13 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: $GO_VERSION
go-version: ${{ env.GO_VERSION }}

- name: Build binary
run: |
export GOOS=${{ matrix.os }}
export GOARCH=${{ matrix.arch }}
export CGO_ENABLED=$CGO_ENABLED
export CGO_ENABLED=${{ env.CGO_ENABLED }}
go build -o bbx-${GOOS}-${GOARCH}
- name: run
Expand Down Expand Up @@ -83,4 +83,4 @@ jobs:
- name: Build and push Docker image
run: |
# docker buildx build --build-arg IMAGE=golang:1.22 --platform linux/amd64,linux/arm64 -t snail2sky/bbx:latest . --push
docker buildx build --build-arg IMAGE=golang:1.22 --platform linux/amd64 -t snail2sky/bbx:${{ steps.variables.outputs.tag }} . --push
docker buildx build --build-arg IMAGE=golang:1.22 --platform linux/amd64 -t snail2sky/bbx:${{ steps.vars.outputs.tag }} . --push

0 comments on commit ddfdcc2

Please sign in to comment.