Skip to content

Commit

Permalink
fix: tag ci error (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
DVKunion authored Jan 17, 2024
1 parent f40e8f0 commit be04fa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/conf/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ before:
hooks:
- go mod tidy
builds:
- binary: client
- binary: seamoon
env:
- CGO_ENABLED=0
main: ./cmd/main.go
Expand Down
33 changes: 2 additions & 31 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: prepare-dockerfile
run: cp docker/client/Dockerfile ./Dockerfile
- uses: docker/build-push-action@v3
with:
push: true
Expand All @@ -27,35 +25,8 @@ jobs:
linux/arm64
linux/386
tags: |
dvkunion/seamoon-client:latest
dvkunion/seamoon-client:${{github.ref_name}}
build-args: |
VERSION=${{github.ref_name}}
context: ./
package-docker-server:
name: package-docker-server
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: prepare-dockerfile
run: cp docker/server/Dockerfile ./Dockerfile
- uses: docker/build-push-action@v3
with:
push: true
platforms: |
linux/amd64
linux/arm64
linux/386
tags: |
dvkunion/seamoon-server:latest
dvkunion/seamoon-server:${{github.ref_name}}
dvkunion/seamoon:latest
dvkunion/seamoon:${{github.ref_name}}
build-args: |
VERSION=${{github.ref_name}}
context: ./

0 comments on commit be04fa1

Please sign in to comment.