Skip to content

Commit 4ffb54b

Browse files
committed
CI : 2eme image docker
1 parent ddc26e1 commit 4ffb54b

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,39 @@ jobs:
3939
# Use tags computed before and also latest if on master
4040
tags: |
4141
${{ 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' || '' }}
4375
labels: ${{ steps.docker_meta.outputs.labels }}
4476
- name: Image digest
4577
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)