Skip to content

Commit

Permalink
Merge branch 'development' of github.com:DANS-KNAW/dans-frontend-fram…
Browse files Browse the repository at this point in the history
…ework into development
  • Loading branch information
D-Unit committed Jan 28, 2025
2 parents 70865c5 + 3007777 commit 984b6a1
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build-supercatalog-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Docker Image CI

on:
push:
paths:
- 'apps/supercatalog/**'

jobs:

test:

runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["20"]
name: Run tests
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set node version
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install git
npm i -g turbo
npm i -g pnpm
- name: Run tests
run: "echo 'setup complete' "

push:

name: Push to registry.
runs-on: ohsmart-demo
needs: test
strategy:
matrix:
node-version: ["20"]
env:
IMAGE_TAG: ${{ github.ref_name }}
USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
IMAGE_NAME: "dans-frontend-framework-supercatalog"
ORG: "dansknaw"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Login to registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Copy file
run: "cp /data/secrets/supercatalog/.env.production apps/supercatalog/."
- name: Push to dockerhub
run: |
docker build -f apps/ohsmart/Dockerfile . -t $ORG/$IMAGE_NAME:$IMAGE_TAG
docker push $ORG/$IMAGE_NAME:$IMAGE_TAG

0 comments on commit 984b6a1

Please sign in to comment.