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 ddfdcc2 commit e0134d1
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:


jobs:
build:
build-binary:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -28,6 +28,8 @@ jobs:
id: vars
run: |
tag=`basename ${{ github.ref }}`
echo ${{ steps.vars.outputs.tag }}
pwd
# golang_version=1.22
# cgo_enabled=0

Expand All @@ -43,16 +45,11 @@ jobs:
export CGO_ENABLED=${{ env.CGO_ENABLED }}
go build -o bbx-${GOOS}-${GOARCH}
- name: run
run: |
ls -al
tree
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: bbx-${{ matrix.os }}-${{ matrix.arch }}
path: bbx-${{ matrix.os }}-${{ matrix.arch }}
# - name: Upload binaries
# uses: actions/upload-artifact@v4
# with:
# name: bbx-${{ matrix.os }}-${{ matrix.arch }}
# path: bbx-${{ matrix.os }}-${{ matrix.arch }}
- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -62,9 +59,10 @@ jobs:
files: |
bbx-${{ matrix.os }}-${{ matrix.arch }}
- name: run
run: |
ls -al; tree
build-image:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -75,11 +73,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: run
run: |
ls -al
tree
- 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
Expand Down

0 comments on commit e0134d1

Please sign in to comment.