1
- name : " Build Docker Images"
2
- run-name : Build of ${{ github.ref_name }} by @${{ github.actor }}
3
- on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
8
- branches :
9
- - main
10
- workflow_dispatch :
11
- inputs :
12
- debug_enabled :
13
- type : boolean
14
- description : ' Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
15
- required : false
16
- default : false
1
+ # we are running the build in vercel now so we don't need this github action
2
+ # commenting this out because this action kept failing on https://github.com/scientist-softserv/webstore/pull/268
3
+ # TODO(alishaevn): figure out the sentry error if we switch from vercel to an in house deploy infrastructure
17
4
18
- env :
19
- REGISTRY : ghcr.io
5
+ # name: "Build Docker Images"
6
+ # run-name: Build of ${{ github.ref_name }} by @${{ github.actor }}
7
+ # on:
8
+ # push:
9
+ # branches:
10
+ # - main
11
+ # pull_request:
12
+ # branches:
13
+ # - main
14
+ # workflow_dispatch:
15
+ # inputs:
16
+ # debug_enabled:
17
+ # type: boolean
18
+ # description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
19
+ # required: false
20
+ # default: false
20
21
21
- jobs :
22
- build :
23
- runs-on : ubuntu-latest
24
- permissions :
25
- contents : read
26
- packages : write
27
- steps :
28
- - id : setup
29
- name : Setup
30
- uses :
scientist-softserv/actions/[email protected]
31
- with :
32
- tag : ${{ inputs.tag }}
33
- image_name : ${{ inputs.image_name }}
34
- token : ${{ secrets.CHECKOUT_TOKEN || secrets.GITHUB_TOKEN }}
35
- - uses : actions/setup-node@v3
36
- with :
37
- registry-url : ' https://npm.pkg.github.com'
38
- # Defaults to the user or organization that owns the workflow file
39
- scope : ' @scientist-softserv'
40
- node-version-file : package.json
41
- - name : GPR authToken
42
- run : echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > $NPM_CONFIG_USERCONFIG
43
- - name : GPR alias
44
- run : echo "@scientist-softserv:registry=https://npm.pkg.github.com" >> $NPM_CONFIG_USERCONFIG
45
- - run : yarn install
46
- - run : yarn test
22
+ # env:
23
+ # REGISTRY: ghcr.io
47
24
48
- - name : Login to GitHub Container Registry
49
- uses : docker/login-action@v2
50
- with :
51
- registry : ${{ env.REGISTRY }}
52
- username : ${{ github.actor }}
53
- password : ${{ secrets.GITHUB_TOKEN }}
25
+ # jobs:
26
+ # build:
27
+ # runs-on: ubuntu-latest
28
+ # permissions:
29
+ # contents: read
30
+ # packages: write
31
+ # steps:
32
+ # - id: setup
33
+ # name: Setup
34
+ # uses: scientist-softserv/actions/[email protected]
35
+ # with:
36
+ # tag: ${{ inputs.tag }}
37
+ # image_name: ${{ inputs.image_name }}
38
+ # token: ${{ secrets.CHECKOUT_TOKEN || secrets.GITHUB_TOKEN }}
39
+ # - uses: actions/setup-node@v3
40
+ # with:
41
+ # registry-url: 'https://npm.pkg.github.com'
42
+ # # Defaults to the user or organization that owns the workflow file
43
+ # scope: '@scientist-softserv'
44
+ # node-version-file: package.json
45
+ # - name: GPR authToken
46
+ # run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > $NPM_CONFIG_USERCONFIG
47
+ # - name: GPR alias
48
+ # run: echo "@scientist-softserv:registry=https://npm.pkg.github.com" >> $NPM_CONFIG_USERCONFIG
49
+ # - run: yarn install
50
+ # - run: yarn test
54
51
55
- - name : Retag action for Docker image
56
- id : meta-docker-image
57
-
58
- with :
59
- images : |
60
- name=${{ env.REGISTRY }}/${{ env.REPO_LOWER }}
61
- tags : |
62
- type=raw,value=latest,enable={{is_default_branch}}
52
+ # - name: Login to GitHub Container Registry
53
+ # uses: docker/login-action@v2
54
+ # with:
55
+ # registry: ${{ env.REGISTRY }}
56
+ # username: ${{ github.actor }}
57
+ # password: ${{ secrets.GITHUB_TOKEN }}
63
58
64
- - run : cp $NPM_CONFIG_USERCONFIG .npmrc; cat .npmrc
59
+ # - name: Retag action for Docker image
60
+ # id: meta-docker-image
61
+
62
+ # with:
63
+ # images: |
64
+ # name=${{ env.REGISTRY }}/${{ env.REPO_LOWER }}
65
+ # tags: |
66
+ # type=raw,value=latest,enable={{is_default_branch}}
65
67
66
- - name : Build and push Docker image
67
- uses : docker/build-push-action@v3
68
- with :
69
- cache-from : type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_LOWER }}:${{ env.TAG }}
70
- context : .
71
- push : true
72
- tags : |
73
- ${{ steps.meta-docker-image.outputs.tags }}
74
- ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}:${{ env.TAG }}
68
+ # - run: cp $NPM_CONFIG_USERCONFIG .npmrc; cat .npmrc
69
+
70
+ # - name: Build and push Docker image
71
+ # uses: docker/build-push-action@v3
72
+ # with:
73
+ # cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_LOWER }}:${{ env.TAG }}
74
+ # context: .
75
+ # push: true
76
+ # tags: |
77
+ # ${{ steps.meta-docker-image.outputs.tags }}
78
+ # ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}:${{ env.TAG }}
0 commit comments