Skip to content

Commit

Permalink
trying depot.dev for building
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar Oostendorp committed Feb 17, 2024
1 parent fba15a6 commit 47e1ebf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Retrieve DOJO_VERSION
run: |
echo DOJO_VERSION=$(cat DOJO_VERSION) >> "$GITHUB_ENV"
Expand All @@ -29,7 +30,14 @@ jobs:
uses: depot/setup-action@v1

- uses: depot/build-push-action@v1
# with:
with:
context: .
build-args: DOJO_VERSION=${{ env.DOJO_VERSION }}
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# if no depot.json file is at the root of your repo, you must specify the project id
# project: r77bmfc7vx
# Pass project token or user access token if you're not using OIDC token authentication
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ FROM node:20-bookworm as keiko

ARG DOJO_VERSION

RUN if [ -z "$DOJO_VERSION" ]; then echo "VERSION argument is required" && exit 1; fi
RUN if [ -z "$DOJO_VERSION" ]; then echo "DOJO_VERSION argument is required" && exit 1; fi

# Install dependencies
RUN apt-get update && \
Expand Down

0 comments on commit 47e1ebf

Please sign in to comment.