-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (44 loc) · 1.31 KB
/
staging.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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 }}