Skip to content

Commit

Permalink
ci: update actions version and bump java to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchen5209 committed Aug 15, 2024
1 parent cce7ef4 commit 4cec70d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
docker:
# specify the version you desire here
- image: openjdk:17-jdk-slim
- image: openjdk:21-jdk-slim
resource_class: large

working_directory: ~/repo
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -18,16 +18,16 @@ jobs:
restore-keys: |
caches-
- name: JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
- name: Gradle
uses: gradle/wrapper-validation-action@v1
uses: gradle/actions/wrapper-validation@v3
- name: Build
run: ./gradlew --no-daemon build
- name: Upload-Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jar
path: build/libs/Galaxy.jar
Expand All @@ -45,22 +45,22 @@ jobs:
shell: bash
run: echo IMAGE_TAG=$([ "$GITHUB_REF" = "refs/heads/master" ] && echo "latest" || ([ "$GITHUB_EVENT_NAME" = 'pull_request' ] && echo pr-${{github.event.pull_request.number}} || echo ${GITHUB_REF##*/})) >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: jar
path: docker/mods/Galaxy.jar
- name: login
if: env.USERNAME != '' && env.PASSWORD != ''
uses: azure/docker-login@v1
uses: docker/login-action@v3
with:
login-server: harbor.k8s.oktw.one
registry: harbor.k8s.oktw.one
username: ${{ secrets.OKTW_HARBOR_USERNAME }}
password: ${{ secrets.OKTW_HARBOR_PASSWORD }}
- name: build cache
Expand Down

0 comments on commit 4cec70d

Please sign in to comment.