@@ -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 }}
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