Skip to content

Commit

Permalink
build: fix pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperHG90 committed Jan 10, 2024
1 parent 20d5e8f commit 83a9413
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/templates/publish/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ runs:
named-caches-hash: ${{ hashFiles('python-default.lock') }}
cache-lmdb-store: 'true'
- name: 'Luchtmeetnet ingestion'
run: VERSION=${{ inputs.version }} pants --filter-target-type=docker_image publish dags/luchtmeetnet_ingestion:img
run: |
VERSION=${{ inputs.version }} pants \
--filter-target-type=docker_image \
publish dags/luchtmeetnet_ingestion:img
shell: bash
2 changes: 1 addition & 1 deletion .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ docker_login:
#!/usr/bin/env bash
set -e
ARTIFACT_SA=$(gcloud secrets versions access latest \
--secret=ARTIFACT_WRITER_SA_JSON_KEY_B64 \
--secret=CONTAINERADMIN_PRD_SA_JSON_KEY_B64 \
| python -m base64 -d)
docker login -u _json_key -p "$ARTIFACT_SA" europe-west4-docker.pkg.dev
4 changes: 2 additions & 2 deletions dags/luchtmeetnet_ingestion/.justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT := "jasperg-dagster"
ARTIFACT_STORE := "dags-areg-euw4-dagi-prd"
PROJECT := "jasper-ginn-dagster"
ARTIFACT_STORE := "dags-areg-euw4-jgdag-prd"
DOCKER_BASE := "europe-west4-docker.pkg.dev/" + PROJECT + "/" + ARTIFACT_STORE
IMAGE_NAME := "luchtmeetnet_ingestion"
IMAGE_URI := DOCKER_BASE + "/" + IMAGE_NAME
Expand Down
6 changes: 1 addition & 5 deletions dags/luchtmeetnet_ingestion/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# docker_image(
# name="docker",
# )

poetry_requirements(
name="poetry",
)
Expand Down Expand Up @@ -63,7 +59,7 @@ docker_image(
name="img",
dependencies=[":img-srcs", ":img-deps"],
repository="luchtmeetnet_ingestion",
registries=["europe-west4-docker.pkg.dev/jasperg-dagster/dags-areg-euw4-dagi-prd"],
registries=["europe-west4-docker.pkg.dev/jasper-ginn-dagster/dags-areg-euw4-jgdag-prd"],
instructions=[
"FROM python:3.9-slim",
"COPY --from=luchtmeetnet_ingestion:deps /bin/app /bin/app",
Expand Down

0 comments on commit 83a9413

Please sign in to comment.