Skip to content

Commit

Permalink
ci: shortlink
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzc19 committed Jul 5, 2024
1 parent 831e6c8 commit eec2994
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/shortlink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: 'Set up JDK 17'
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Package gradle project
- name: 'Package gradle project'
run: |
cd v-demo/shortlink
./gradlew bootJar
- name: Set up Docker Buildx
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push docker image
password: ${{ secrets.GITHUB_TOKEN }}
- name: 'Build and push docker image'
uses: docker/build-push-action@v5
with:
context: v-demo/shortlink
Expand All @@ -37,5 +37,5 @@ jobs:
linux/arm64
push: true
tags: |
ghcr.io/vitamin/shortlink:latest
ghcr.io/lkzc19/vitamin.shortlink:latest
2 changes: 1 addition & 1 deletion v-demo/shortlink/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# shortlink

短链系统demo
短链系统demo

0 comments on commit eec2994

Please sign in to comment.