File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # A GitHub workflow to build a container for each semantically versioned tag (i.e. vX.Y.Z).
3+ #
4+ # help:
5+ # - tagging info: https://github.com/docker/build-push-action/blob/v2/docs/advanced/tags-labels.md
6+ # - original gist: https://gist.github.com/robb-j/049217ca8cecf4e214b8b82123f7371b
7+ #
8+
9+ name : Containers
10+
11+ on :
12+ push :
13+ tags : [v*]
14+
15+ jobs :
16+ build-cli :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v4
21+
22+ - name : Generate cli metadata
23+ id : cli_meta
24+ uses : docker/metadata-action@v5
25+ with :
26+ images : ghcr.io/digitalinteraction/maps.openlab.dev/cli
27+ tags : type=semver,pattern={{version}}
28+
29+ - name : Set up QEMU
30+ uses : docker/setup-qemu-action@v3
31+
32+ - name : Set up Docker Buildx
33+ uses : docker/setup-buildx-action@v3
34+
35+ - name : Login to GHCR
36+ uses : docker/login-action@v3
37+ with :
38+ registry : ghcr.io
39+ username : ${{ github.repository_owner }}
40+ password : ${{ secrets.GITHUB_TOKEN }}
41+
42+ - name : Build cli
43+ uses : docker/build-push-action@v6
44+ with :
45+ file : cli/Dockerfile
46+ push : true
47+ tags : ${{ steps.cli_meta.outputs.tags }}
48+ labels : ${{ steps.cli_meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ RUN npm ci
1717COPY --chown=node ["cli" , "/app/cli" ]
1818RUN npm run --workspace=cli build
1919RUN wget -O- https://github.com/protomaps/go-pmtiles/releases/download/v1.28.0/go-pmtiles_1.28.0_Linux_x86_64.tar.gz | tar -xzC /tmp
20- # && npm run --workspace=cli test \
2120
2221# [2] From the base again, install production dependencies and copy compiled code
2322FROM base AS dist
Original file line number Diff line number Diff line change 5050 >Open Source</a
5151 >
5252 &mdash ; made by
53- <a href =" https://www.r0b.io" >Rob</a >
53+ <a href =" https://www.r0b.io" >Rob</a > v {{ pkg . version }}
5454 </p >
5555 </footer >
5656 <!-- @openlab/alembic inject-js -->
You can’t perform that action at this time.
0 commit comments