Skip to content

Commit

Permalink
Finally succeeded, automatically building binary and container images
Browse files Browse the repository at this point in the history
  • Loading branch information
snail committed Oct 24, 2024
1 parent 564b481 commit 4ade06b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
env:
GO_VERSION: 1.22
CGO_ENABLED: 0


jobs:
build-binary:
Expand Down Expand Up @@ -55,7 +54,7 @@ jobs:
build-image:
runs-on: ubuntu-latest
needs: build-binary
# needs: build-binary
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -74,11 +73,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: show
run: |
echo ${{ steps.set_output.outputs.tag }}
- 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.set_output.outputs.tag }} . --push
docker buildx build --build-arg IMAGE=golang:1.22 --platform linux/amd64,linux/arm64 -t snail2sky/bbx:${{ steps.set_output.outputs.tag }} . --push

0 comments on commit 4ade06b

Please sign in to comment.