Skip to content

Merge pull request #189 from UniversityOfHelsinkiCS/renovate/typescri… #589

Merge pull request #189 from UniversityOfHelsinkiCS/renovate/typescri…

Merge pull request #189 from UniversityOfHelsinkiCS/renovate/typescri… #589

Workflow file for this run

name: Deploy to staging
on:
push:
branches:
- master
jobs:
test:
uses: ./.github/workflows/test.yml
build-and-push:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- run: npm install
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: kliksutin
tags: staging ${{ github.sha }}
containerfiles: |
./Dockerfile
build-args: |
BASE_PATH=/kliksutin
GIT_SHA=${{ github.sha }}
STAGING=true
E2E=false
# Extra args are needed to increase the number of open files
# because of build EMFILE error: https://github.com/npm/cli/issues/4783#issuecomment-1908016260
extra-args: |
--ulimit nofile=4096:4096
- name: Push to quay.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/toska
username: toska+github
password: ${{ secrets.QUAY_IO_TOKEN }}