@@ -2,41 +2,35 @@ name: docker-build-push-release-alpine
2
2
3
3
on :
4
4
release :
5
- types : [released, edited]
5
+ types : [ released, edited ]
6
6
7
7
jobs :
8
8
build :
9
9
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- -
14
- name : Checkout repo
15
- uses : actions/checkout@v2.4.0
16
- -
17
- name : Get release version without v
18
- id : release_version
19
- uses : battila7/get-version-action@v2.2.1
20
- -
21
- name : Docker login
22
- id : docker_login
23
- uses : docker/login-action@v1.12.0
24
- with :
25
- username : ${{ secrets.DOCKERHUB_USERNAME }}
26
- password : ${{ secrets.DOCKERHUB_PASSWORD }}
27
- -
28
- name : Build and push image
29
- id : docker_build
30
- uses : docker/build-push-action@v2.9.0
31
- with :
32
- push : true
33
- file : Dockerfile.alpine
34
- tags : 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine,3dcitydb/impexp:latest-alpine
35
- build-args : |
36
- IMPEXP_VERSION=${{ steps.release_version.outputs.version }}
37
- -
38
- name : Image digest
39
- run : echo ${{ steps.docker_build.outputs.digest }}
40
- -
41
- name : Run container
42
- run : docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine help | grep -i -E "Usage:"
13
+ - name : Checkout repo
14
+ uses : actions/checkout@v4
15
+ - name : Get release version without v
16
+ id : release_version
17
+ uses : battila7/get-version-action@v2
18
+ - name : Docker login
19
+ id : docker_login
20
+ uses : docker/login-action@v3
21
+ with :
22
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
23
+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
24
+ - name : Build and push image
25
+ id : docker_build
26
+ uses : docker/build-push-action@v6
27
+ with :
28
+ push : true
29
+ file : Dockerfile.alpine
30
+ tags : 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine,3dcitydb/impexp:latest-alpine
31
+ build-args : |
32
+ IMPEXP_VERSION=${{ steps.release_version.outputs.version }}
33
+ - name : Image digest
34
+ run : echo ${{ steps.docker_build.outputs.digest }}
35
+ - name : Run container
36
+ run : docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine help | grep -i -E "Usage:"
0 commit comments