Skip to content

Commit 6a4511d

Browse files
committed
updates
1 parent ae0ef02 commit 6a4511d

3 files changed

Lines changed: 49 additions & 2 deletions

File tree

.github/workflows/containers.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 }}

cli/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ RUN npm ci
1717
COPY --chown=node ["cli", "/app/cli"]
1818
RUN npm run --workspace=cli build
1919
RUN 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
2322
FROM base AS dist

website/_includes/html.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
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 -->

0 commit comments

Comments
 (0)