Skip to content

Commit

Permalink
build: placeholder simplified build process
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto committed Jul 10, 2024
1 parent 988a41b commit 17c9ed8
Show file tree
Hide file tree
Showing 5 changed files with 1,406 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
tags: ci_image:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
build-args: |
NPM_TOKEN=${{ secrets.NPM_TOKEN }}
- name: Extract artifact from Docker image
run: |
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@lamassu:registry=https://gitlab.lamassu.is/api/v4/projects/108/packages/npm/
//gitlab.lamassu.is/api/v4/projects/108/packages/npm/:_authToken="${NPM_TOKEN}"
5 changes: 5 additions & 0 deletions build-scripts/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ FROM lamassu/upboard-build:2.0 as build

RUN curl -sL https://ssubucket.ams3.digitaloceanspaces.com/deploy-files_2019.06.07.txz | xz -dc | tar -x

ARG NPM_TOKEN
COPY ["package.json", "package-lock.json", "./"]

RUN npm install --global json && \
json -I -f package.json -e 'this.dependencies["@lamassu/bnr-advance"] = this.optionalDependencies["@lamassu/bnr-advance"]; delete this.optionalDependencies["@lamassu/bnr-advance"]'

RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
RUN npm install
COPY . ./
Expand Down
Loading

0 comments on commit 17c9ed8

Please sign in to comment.