Skip to content

Commit

Permalink
Fix Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmwinther committed Jan 11, 2024
1 parent 46a1617 commit 223ca81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Datadoc Dapla Lab CI
name: Docker build

on:
push:
branches:
- "**"
tags:
- "*"
pull_request:
paths:
- 'datadoc/**'
- 'src/datadoc/**'
- 'poetry.lock'
- 'Dockerfile'
- '.github/workflows/dapla-lab-ci.yml'
- '.github/workflows/docker-build.yml'

env:
REGISTRY: europe-north1-docker.pkg.dev/artifact-registry-5n/dapla-lab-docker/onyxia
REGISTRY: europe-north1-docker.pkg.dev/artifact-registry-5n/dapla-metadata-docker/datadoc
IMAGE: datadoc
TAG: ${{ github.ref_name }}-${{ github.sha }}

Expand All @@ -31,7 +30,7 @@ jobs:
uses: "google-github-actions/[email protected]"
with:
workload_identity_provider: "projects/848539402404/locations/global/workloadIdentityPools/gh-actions/providers/gh-actions"
service_account: "gh-actions-dapla-lab@artifact-registry-5n.iam.gserviceaccount.com"
service_account: "gh-actions-dapla-metadata@artifact-registry-5n.iam.gserviceaccount.com"
token_format: "access_token"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ENV PATH="$POETRY_HOME/bin:$PATH"
# Import our project files
WORKDIR $APP_PATH
COPY ./poetry.lock ./pyproject.toml ./README.md ./
COPY ./$PACKAGE_NAME ./$PACKAGE_NAME
COPY ./src/$PACKAGE_NAME ./$PACKAGE_NAME

RUN poetry build --format wheel
RUN poetry export --format constraints.txt --output constraints.txt --without-hashes
Expand Down

0 comments on commit 223ca81

Please sign in to comment.