Skip to content

ci: shortlink

ci: shortlink #8

Workflow file for this run

name: shortlink
on:
push:
paths:
- 'v-demo/shortlink/**'
jobs:
shortlink:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Package gradle project
run: |
cd v-demo/shortlink
./gradlew bootJar
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- 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
uses: docker/build-push-action@v5
with:
context: v-demo/shortlink
file: v-demo/shortlink/Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: |
ghcr.io/vitamin/shortlink:latest