Update: d11823a #137
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: YuukiPS Alpine (4.0) (19) (Stable) | |
on: | |
push: | |
paths: # TES2 | |
- "gs/os-loc-alpine-gc" | |
- "gs/ver_GSServer-GC-4.0" | |
- "gs/run.sh" | |
- "gs/entrypoint_gc.sh" | |
- ".github/workflows/yuukips.yml" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Sync DockerGS | |
uses: actions/checkout@v3 | |
- name: Sync YuukiPS | |
uses: actions/checkout@v3 | |
with: | |
repository: YuukiPS/GSServer-GC | |
ref: "4.0" | |
token: ${{ secrets.HUB_TOKEN }} | |
path: gs/GSServer-GC | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: "17" | |
cache: "gradle" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
registry: registry.gitlab.com | |
username: ${{secrets.DOCKER_USER_PRIVATE_GITLAB}} | |
password: ${{secrets.DOCKER_PASSWORD_PRIVATE_GITLAB}} | |
- name: Build Local Jar | |
run: cd gs && chmod +x run.sh && sh run.sh alpine build 19 docker_action pv | |
- name: Build Image Docker and Push | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./gs | |
file: ./gs/os-loc-alpine-gc | |
push: true | |
tags: | | |
${{ env.ver1 }} | |
${{ env.ver2 }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |