Skip to content

Commit 684f86b

Browse files
authored
feat(snowplow): move snowplow-micro docker image into this repo (#381)
- pocket decommission - HNT-1769
1 parent 6ccb167 commit 684f86b

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Docker Images
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
schedule: # Rebuild images nightly
8+
- cron: '0 0 * * *'
9+
10+
jobs:
11+
snowplow:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Set up QEMU
15+
uses: docker/setup-qemu-action@v3
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
- name: Login to Docker Hub
19+
uses: docker/login-action@v3
20+
with:
21+
username: ${{ secrets.DOCKERHUB_USERNAME }}
22+
password: ${{ secrets.DOCKERHUB_TOKEN }}
23+
- name: Build (dev)
24+
uses: docker/build-push-action@v6
25+
with:
26+
push: ${{ github.ref == 'refs/heads/main' && true || false}}
27+
platforms: linux/amd64,linux/arm64
28+
tags: pocket/snowplow-micro:latest,pocket/snowplow-micro:dev
29+
context: '{{defaultContext}}:docker-images/snowplow-micro'
30+
build-args: |
31+
API_KEY=${{secrets.SNOWPLOW_DEV_API_KEY}}
32+
COLLECTOR=https://com-getpocket-dev.iglu.snplow.net/api
33+
- name: Build (prod)
34+
uses: docker/build-push-action@v6
35+
with:
36+
push: ${{ github.ref == 'refs/heads/main' && true || false}}
37+
platforms: linux/amd64,linux/arm64
38+
tags: pocket/snowplow-micro:prod
39+
context: '{{defaultContext}}:docker-images/snowplow-micro'
40+
build-args: |
41+
API_KEY=${{secrets.SNOWPLOW_PROD_API_KEY}}
42+
COLLECTOR=https://com-getpocket-prod.iglu.snplow.net/api
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM snowplow/snowplow-micro:4.0.0
2+
3+
ARG API_KEY
4+
ARG COLLECTOR
5+
6+
ENV MICRO_IGLU_REGISTRY_URL=${COLLECTOR}
7+
ENV MICRO_IGLU_API_KEY=${API_KEY}

0 commit comments

Comments
 (0)