-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09b2a73
commit 94ccd09
Showing
27 changed files
with
4,151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
env: | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.BRANCH_NAME }} | ||
|
||
- name: Generate Timestamp | ||
run: | | ||
echo "TIMESTAMP=$(date '+%s')" >> $GITHUB_ENV | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
|
||
- name: Build and Push image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: '${{ env.REGISTRY }}/agoric/tools-app:${{ env.TIMESTAMP }}' | ||
build-args: | | ||
TAG=${{ env.TIMESTAMP }} | ||
name: Create Tools Docker Image | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
BRANCH_NAME: | ||
default: main | ||
description: Branch to build the image from | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM node:20 | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN <<-EOF | ||
#!/bin/bash | ||
|
||
set -o errexit -o nounset -o xtrace | ||
|
||
yarn install | ||
yarn build | ||
EOF | ||
|
||
ENV PORT=3000 | ||
|
||
EXPOSE $PORT | ||
|
||
ENTRYPOINT [ "yarn", "start" ] |
Oops, something went wrong.