Skip to content

Commit

Permalink
Fix building Dev image
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanser committed Oct 2, 2024
1 parent 80f6c46 commit b9ea7b2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker-dev-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ on:
pull_request:
branches: [ "main" ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker Dev image
run: docker build . --file docker/Dockerfile --target app-dev --tag open-swiss-buildings-api:latest
run: docker build . --file docker/Dockerfile --target app-dev --tag $IMAGE_NAME:latest
- name: Tag the Docker Dev image
run: docker tag open-swiss-buildings-api:latest $DOCKER_REGISTRY_URL/open-swiss-buildings-api:latest
run: docker tag open-swiss-buildings-api:latest $REGISTRY/$IMAGE_NAME:latest
- name: Push the latest tag of the Docker Dev image
run: docker push $DOCKER_REGISTRY_URL/open-swiss-buildings-api:latest
run: docker push $REGISTRY/$IMAGE_NAME:latest

0 comments on commit b9ea7b2

Please sign in to comment.