Skip to content

Commit

Permalink
feature(main): add rebot code
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu committed Apr 26, 2023
1 parent deac5f8 commit 3e3c6cc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,24 @@ jobs:
with:
version: latest
args: build --snapshot --clean --timeout=1h
- uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2
- uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.G_REGISTRY_TOKEN }}
- name: Copy file
run: |
cp dist/gh-rebot_linux_amd64_v1/gh-rebot gh-rebot
- name: Expose git commit data
uses: rlespinasse/git-commit-data-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/gh-rebot:${{ env.GIT_COMMIT_SHORT_SHA }}
labels: org.opencontainers.image.source=https://github.com/labring-actions/gh-rebot

0 comments on commit 3e3c6cc

Please sign in to comment.