Skip to content

Update package.json

Update package.json #9

Workflow file for this run

name: Docker
on:
# release:
# types: [created]
# branches:
# - main
push:
branches:
- docker
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: yarn install --frozen-lockfile
- run: yarn 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 }}