|
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 |
| 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 |
4 | 17 |
|
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 |
21 |
| - |
22 |
| -# env: |
23 |
| -# REGISTRY: ghcr.io |
24 |
| - |
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 |
51 |
| - |
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 }} |
58 |
| - |
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}} |
67 |
| - |
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 }} |
| 18 | +jobs: |
| 19 | + build: |
| 20 | + uses: scientist-softserv/actions/.github/workflows/[email protected] |
| 21 | + secrets: inherit |
| 22 | + with: |
| 23 | + platforms: "linux/amd64" |
| 24 | + webTarget: web |
0 commit comments