Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub authored Jan 4, 2024
1 parent a872f1c commit bdf67b9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ jobs:

- name: Build
run: mkdir -p "$GOPATH/src/github.com/admpub" && ln -s "$(pwd)" "$GOPATH/src/github.com/admpub/nging" && go mod vendor && cd ./tool/nging-builder && go install github.com/admpub/xgo@latest && ./run.sh linux_amd64 && cd ../../
env:
GOPATH: /home/runner/go

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build the Docker image
run: docker build . --file Dockerfile --tag "admpub/nging:latest"
run: docker build . --file Dockerfile --tag "admpub/nging:latest" && docker push admpub/nging:latest
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
# - name: Test
# run: go test -v ./...

0 comments on commit bdf67b9

Please sign in to comment.