Skip to content

Commit

Permalink
chore: update workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
derlin committed Aug 1, 2024
1 parent 763cb1d commit 007f105
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/actions/gradlew/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ runs:
using: composite
steps:
- name: Verify gradle wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v3

- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup gradle
uses: ./.github/actions/gradlew
Expand All @@ -25,7 +25,7 @@ jobs:
run: echo "PLAYWRIGHT_BROWSERS_PATH=.playwright" >> $GITHUB_ENV

- name: Cache playwright executables
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .playwright
key: ${{ runner.os }}-playwright
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup gradle
uses: ./.github/actions/gradlew
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup gradle
uses: ./.github/actions/gradlew
Expand All @@ -39,14 +39,14 @@ jobs:
./gradlew exec-jar
- name: Attach assets to release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.release-please.outputs.tag }}
files: |
build/bin/*.jar
- name: Upload Jar artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jars
# Use a wildcard to keep the structure
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/reusable-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ jobs:
name: Docker Build and Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
if: ${{ inputs.artifact != '' }}
with:
name: ${{ inputs.artifact }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
Expand Down Expand Up @@ -81,27 +81,27 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Log in to Docker Hub
if: ${{ inputs.publish && inputs.publish_dockerhub }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64 # TODO also support the new mac architecture (requires buildx)
Expand Down

0 comments on commit 007f105

Please sign in to comment.