Skip to content

Merge pull request #78 from InseeFr/JeromeMBourgeois-patch-1 #16

Merge pull request #78 from InseeFr/JeromeMBourgeois-patch-1

Merge pull request #78 from InseeFr/JeromeMBourgeois-patch-1 #16

Workflow file for this run

name: Docker
on:

Check failure on line 3 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
release:
types: [created]
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install --force
- run: npm run build
- name: Upload Deploy Artifact
uses: actions/upload-artifact@v2
with:
name: build
path: build/
docker:
name: Docker Build and Push
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- name: Download Build
uses: actions/download-artifact@v2
with:
name: build
path: build
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract Version
run: |
VERSION=$(cat package.json | jq -r .version)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Build and Push
uses: docker/build-push-action@v4
with:
push: true
file: Dockerfile
tags: inseefr/impala:${{ env.VERSION }}