3737 NIX_CONFIG : access-tokens = github.com=${{ secrets.NIXPKGS_PRIVATE_PAT }}
3838
3939jobs :
40- # Lint the code
41- feature-lint :
42- name : " Feature / Lint"
40+ feature-debug :
41+ name : " Feature / Debug"
4342 runs-on : ubuntu-latest
44- container :
45- image : ghcr.io/matrixai/github-runner
46- permissions :
47- packages : read
48- contents : read
4943 steps :
50- - uses : actions/checkout@v4
51- - name : Run linting
52- run : |
53- nix develop .#ci --command bash -c $'
54- npm run lint
55- '
56-
57- # Build the public
58- feature-build :
59- name : " Feature / Build"
60- runs-on : ubuntu-latest
61- container :
62- image : ghcr.io/matrixai/github-runner
63- permissions :
64- packages : read
65- contents : read
66- actions : write
67- steps :
68- - uses : actions/checkout@v4
69- with :
70- lfs : true
71- - name : Run build
72- run : |
73- nix develop .#ci --command bash -c $'
74- npm run build --verbose
75- '
76- - name : Upload Build
77- uses : actions/upload-artifact@v4
78- with :
79- name : public
80- path : ./public
81-
82- # Deploy the public
83- feature-deployment :
84- name : " Feature / Deployment"
85- runs-on : ubuntu-latest
86- needs : feature-build
87- container :
88- image : ghcr.io/matrixai/github-runner
89- concurrency :
90- group : feature-deployment
91- cancel-in-progress : false
92- steps :
93- - uses : actions/checkout@v4
94- with :
95- lfs : true
96- - uses : actions/download-artifact@v4
97- with :
98- name : public
99- path : ./public
10044 - name : Debug Something
10145 run : |
10246 echo SOMETHING_ELSE: "${{ inputs.SOMETHING_ELSE }}"
10347 echo DEPLOY_SECRETS: "${{ inputs.DEPLOY_SECRETS }}"
104- - name : Setup Deploy Secrets
105- run : |
106- echo "${{ inputs.DEPLOY_SECRETS }}" | jq -r 'to_entries | .[] | "\(.key)=\(.value)"' >> $GITHUB_ENV
107- - name : Run deployment
108- env :
109- name : " feature/${{ github.ref_name }}"
110- url : " https://${{ github.ref_name }}.dev.${{ inputs.APP_NAME }}"
111- run : |
112- echo 'Perform service deployment for feature'
113- echo "$SECRET1"
114- echo "$SECRET2"
115- echo "$SECRET3"
116- nix develop .#ci --command bash -c $'
117- npm run deploy -- \
118- --feature "$GITHUB_REF_NAME" \
119- --env "$GITHUB_REF_NAME"
120- '
48+
49+ # # Lint the code
50+ # feature-lint:
51+ # name: "Feature / Lint"
52+ # runs-on: ubuntu-latest
53+ # container:
54+ # image: ghcr.io/matrixai/github-runner
55+ # permissions:
56+ # packages: read
57+ # contents: read
58+ # steps:
59+ # - uses: actions/checkout@v4
60+ # - name: Run linting
61+ # run: |
62+ # nix develop .#ci --command bash -c $'
63+ # npm run lint
64+ # '
65+
66+ # # Build the public
67+ # feature-build:
68+ # name: "Feature / Build"
69+ # runs-on: ubuntu-latest
70+ # container:
71+ # image: ghcr.io/matrixai/github-runner
72+ # permissions:
73+ # packages: read
74+ # contents: read
75+ # actions: write
76+ # steps:
77+ # - uses: actions/checkout@v4
78+ # with:
79+ # lfs: true
80+ # - name: Run build
81+ # run: |
82+ # nix develop .#ci --command bash -c $'
83+ # npm run build --verbose
84+ # '
85+ # - name: Upload Build
86+ # uses: actions/upload-artifact@v4
87+ # with:
88+ # name: public
89+ # path: ./public
90+
91+ # # Deploy the public
92+ # feature-deployment:
93+ # name: "Feature / Deployment"
94+ # runs-on: ubuntu-latest
95+ # needs: feature-build
96+ # container:
97+ # image: ghcr.io/matrixai/github-runner
98+ # concurrency:
99+ # group: feature-deployment
100+ # cancel-in-progress: false
101+ # steps:
102+ # - uses: actions/checkout@v4
103+ # with:
104+ # lfs: true
105+ # - uses: actions/download-artifact@v4
106+ # with:
107+ # name: public
108+ # path: ./public
109+ # - name: Setup Deploy Secrets
110+ # run: |
111+ # echo "${{ inputs.DEPLOY_SECRETS }}" | jq -r 'to_entries | .[] | "\(.key)=\(.value)"' >> $GITHUB_ENV
112+ # - name: Run deployment
113+ # env:
114+ # name: "feature/${{ github.ref_name }}"
115+ # url: "https://${{ github.ref_name }}.dev.${{ inputs.APP_NAME }}"
116+ # run: |
117+ # echo 'Perform service deployment for feature'
118+ # echo "$SECRET1"
119+ # echo "$SECRET2"
120+ # echo "$SECRET3"
121+ # nix develop .#ci --command bash -c $'
122+ # npm run deploy -- \
123+ # --feature "$GITHUB_REF_NAME" \
124+ # --env "$GITHUB_REF_NAME"
125+ # '
0 commit comments