File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed
docker-images/snowplow-micro Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments