Skip to content

fix: package.json to reduce vulnerabilities #70

fix: package.json to reduce vulnerabilities

fix: package.json to reduce vulnerabilities #70

Workflow file for this run

name: docker-ig
on:
push:
jobs:
build-and-publish:
runs-on: ubuntu-18.04
steps:
- id: docker_meta
name: Docker meta
uses: crazy-max/ghaction-docker-meta@v1
# compute tags:
# - always tag with a short commit SHA : (arkhn/image:sha-${GITHUB_SHA::7})
# - always tag with the branch same (replacing '/' with '-')
# - when a tag follows semver (eg: v1.2.3), tag with 'latest' and '1.2.3'
with:
images: arkhn/cohort360-ig
tag-sha: true
tag-semver: |
{{version}}
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
build-args: |
VERSION_NAME=${{ steps.docker_meta.outputs.version }}
VERSION_SHA=${GITHUB_SHA::8}
platforms: linux/amd64
# always push images to the hub
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}