File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 39
39
# Use tags computed before and also latest if on master
40
40
tags : |
41
41
${{ steps.docker_meta.outputs.tags }}
42
- ${{ github.ref == 'refs/heads/master' && 'inseefrlab/census-hub:maweb' || '' }}
42
+ ${{ github.ref == 'refs/heads/master' && 'inseefrlab/census-hub:latest' || '' }}
43
+ labels : ${{ steps.docker_meta.outputs.labels }}
44
+ - name : Image digest
45
+ run : echo ${{ steps.docker_build.outputs.digest }}
46
+ docker-nsiws :
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - uses : actions/checkout@v2
50
+ - name : Docker meta
51
+ id : docker_meta
52
+ uses : crazy-max/ghaction-docker-meta@v1.8.4
53
+ with :
54
+ images : inseefrlab/census-hub-nsiws # list of Docker images to use as base name for tags
55
+ - name : Set up QEMU
56
+ uses : docker/setup-qemu-action@v1
57
+ - name : Set up Docker Buildx
58
+ uses : docker/setup-buildx-action@v1
59
+ - name : Login to DockerHub
60
+ if : github.event_name != 'pull_request'
61
+ uses : docker/login-action@v1
62
+ with :
63
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
64
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
65
+ - name : Build and push
66
+ uses : docker/build-push-action@v2
67
+ with :
68
+ context : .
69
+ file : ./Dockerfile-nsiws
70
+ push : ${{ github.event_name != 'pull_request' }}
71
+ # Use tags computed before and also latest if on master
72
+ tags : |
73
+ ${{ steps.docker_meta.outputs.tags }}
74
+ ${{ github.ref == 'refs/heads/master' && 'inseefrlab/census-hub-nsiws:latest' || '' }}
43
75
labels : ${{ steps.docker_meta.outputs.labels }}
44
76
- name : Image digest
45
77
run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments