Skip to content

Add docker image to repo #7

Add docker image to repo

Add docker image to repo #7

Workflow file for this run

name: Docker
env:
NODE_VERSION: 18.16.1
on:
push:
branches:
- main
pull_request:
jobs:
build-docker:
name: Build and upload docker image and archive
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install dependencies
run: npm i
- name: Build datahub
run: |
npx nx docker-build datahub
- uses: docker/login-action@v1
name: Login to GitHub Container Registry
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 'Pushing the image onto ghcr.io'
run: |
docker push ghcr.io/camptocamp/mel-dataplatform/datahub:latest
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3