Skip to content

Commit 421ae21

Browse files
committed
Bump actions
1 parent c23461d commit 421ae21

File tree

3 files changed

+34
-25
lines changed

3 files changed

+34
-25
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424

25-
- uses: actions/setup-java@v2
25+
- uses: actions/setup-java@v3
2626
with:
2727
distribution: zulu
2828
java-version: 17
@@ -38,7 +38,7 @@ jobs:
3838
- name: Check
3939
run: ./gradlew check
4040

41-
- uses: actions/upload-artifact@v2
41+
- uses: actions/upload-artifact@v3
4242
if: always()
4343
with:
4444
name: integration-test-logs
@@ -53,10 +53,10 @@ jobs:
5353
# Steps represent a sequence of tasks that will be executed as part of the job
5454
steps:
5555
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
56-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v3
5757

5858
- name: Cache Docker layers
59-
uses: actions/cache@v2
59+
uses: actions/cache@v3
6060
with:
6161
path: /tmp/.buildx-cache
6262
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile', '**/*.gradle.kts', 'gradle.properties', 'src/main/**') }}
@@ -66,27 +66,27 @@ jobs:
6666
# Add Docker labels and tags
6767
- name: Docker meta
6868
id: docker_meta
69-
uses: crazy-max/ghaction-docker-meta@v2
69+
uses: docker/metadata-action@v4
7070
with:
7171
images: ${{ env.DOCKER_IMAGE }}
7272

7373
- name: Login to Docker Hub
74-
uses: docker/login-action@v1
74+
uses: docker/login-action@v2
7575
with:
7676
username: ${{ secrets.DOCKERHUB_USERNAME }}
7777
password: ${{ secrets.DOCKERHUB_TOKEN }}
7878

7979
# Setup docker build environment
8080
- name: Set up QEMU
81-
uses: docker/setup-qemu-action@v1
81+
uses: docker/setup-qemu-action@v2
8282

8383
- name: Set up Docker Buildx
84-
uses: docker/setup-buildx-action@v1
84+
uses: docker/setup-buildx-action@v2
8585

8686
- name: Build
87-
uses: docker/build-push-action@v2
87+
uses: docker/build-push-action@v3
8888
with:
89-
context: ./
89+
context: .
9090
file: ./Dockerfile
9191
cache-from: type=local,src=/tmp/.buildx-cache
9292
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max

.github/workflows/publish_snapshots.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
# Steps represent a sequence of tasks that will be executed as part of the job
1616
steps:
1717
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919

2020
- name: Has SNAPSHOT version
2121
id: is-snapshot
2222
run: grep 'version = ".*-SNAPSHOT"' build.gradle.kts
2323

24-
- uses: actions/setup-java@v2
24+
- uses: actions/setup-java@v3
2525
with:
2626
distribution: zulu
2727
java-version: 17

.github/workflows/release.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
# Steps represent a sequence of tasks that will be executed as part of the job
1717
steps:
1818
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020

21-
- uses: actions/setup-java@v2
21+
- uses: actions/setup-java@v3
2222
with:
2323
distribution: zulu
2424
java-version: 17
2525

2626
- name: Setup Gradle
27-
uses: gradle/gradle-build-action@v2
27+
uses: gradle/gradle-build-action@v3
2828

2929
# Compile code
3030
- name: Compile code
@@ -55,12 +55,12 @@ jobs:
5555

5656
# Steps represent a sequence of tasks that will be executed as part of the job
5757
steps:
58-
- uses: actions/checkout@v2
58+
- uses: actions/checkout@v3
5959

6060
# Add Docker labels and tags
6161
- name: Docker meta
6262
id: docker_meta
63-
uses: crazy-max/ghaction-docker-meta@v2
63+
uses: docker/metadata-action@v4
6464
with:
6565
images: ${{ env.DOCKER_IMAGE }}
6666
# output 2.1.2, 2.1 and 2
@@ -70,23 +70,22 @@ jobs:
7070
7171
# Setup docker build environment
7272
- name: Set up QEMU
73-
uses: docker/setup-qemu-action@v1
73+
uses: docker/setup-qemu-action@v2
7474
- name: Set up Docker Buildx
75-
uses: docker/setup-buildx-action@v1
75+
uses: docker/setup-buildx-action@v2
7676

7777
- name: Login to DockerHub
78-
uses: docker/login-action@v1
78+
uses: docker/login-action@v2
7979
with:
8080
username: ${{ secrets.DOCKERHUB_USERNAME }}
8181
password: ${{ secrets.DOCKERHUB_TOKEN }}
8282

8383
- name: Build and push
8484
id: docker_build
85-
uses: docker/build-push-action@v2
85+
uses: docker/build-push-action@v3
8686
with:
87-
context: ./
87+
context: .
8888
file: ./Dockerfile
89-
# Allow running the image on the architectures supported by openjdk:11-jre-slim
9089
platforms: linux/amd64,linux/arm64
9190
push: true
9291
tags: ${{ steps.docker_meta.outputs.tags }}
@@ -98,7 +97,17 @@ jobs:
9897
org.opencontainers.image.vendor=RADAR-base
9998
org.opencontainers.image.licenses=Apache-2.0
10099
100+
- name: Build locally
101+
id: docker_build
102+
uses: docker/build-push-action@v3
103+
with:
104+
context: .
105+
file: ./Dockerfile
106+
platforms: linux/amd64
107+
load: true
108+
tags: ${{ steps.docker_meta.outputs.tags }}
109+
101110
- name: Inspect image
102111
run: |
103-
docker pull ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
104112
docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
113+
docker run --rm ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} --help

0 commit comments

Comments
 (0)