Skip to content

Commit 11641e5

Browse files
Merge pull request #9 from geo-engine/push-containers
ci: add setup-just action to workflow for container builds
2 parents 74ce7bc + d299d9e commit 11641e5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/containers.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
FRONTEND_CONTAINER_NAME: biois-frontend
3838

3939
steps:
40+
- uses: extractions/setup-just@v3
41+
4042
- name: Modify TAG_NAME if on `tag_name` is set on `workflow_dispatch`
4143
if: github.event.inputs.tag_name != ''
4244
run: |
@@ -55,11 +57,11 @@ jobs:
5557
5658
- name: Push image to quay.io
5759
run: |
58-
podman push ${{env.BACKEND_CONTAINER_NAME}}:${{env.TAG_NAME}} quay.io/geoengine/${{env.BACKEND_CONTAINER_NAME}}:${{env.TAG_NAME}}
59-
podman push ${{env.FRONTEND_CONTAINER_NAME}}:${{env.TAG_NAME}} quay.io/geoengine/${{env.FRONTEND_CONTAINER_NAME}}:${{env.TAG_NAME}}
60+
podman push ${{env.BACKEND_CONTAINER_NAME}}:latest quay.io/geoengine/${{env.BACKEND_CONTAINER_NAME}}:${{env.TAG_NAME}}
61+
podman push ${{env.FRONTEND_CONTAINER_NAME}}:latest quay.io/geoengine/${{env.FRONTEND_CONTAINER_NAME}}:${{env.TAG_NAME}}
6062
6163
- name: Push nightly with date
6264
if: env.TAG_NAME == 'nightly'
6365
run: |
64-
podman push ${{env.BACKEND_CONTAINER_NAME}}:${{env.TAG_NAME}} quay.io/geoengine/${{env.BACKEND_CONTAINER_NAME}}:${{env.TAG_NAME}}-$(date +'%Y-%m-%d')
65-
podman push ${{env.FRONTEND_CONTAINER_NAME}}:${{env.TAG_NAME}} quay.io/geoengine/${{env.FRONTEND_CONTAINER_NAME}}:${{env.TAG_NAME}}-$(date +'%Y-%m-%d')
66+
podman push ${{env.BACKEND_CONTAINER_NAME}}:latest quay.io/geoengine/${{env.BACKEND_CONTAINER_NAME}}:${{env.TAG_NAME}}-$(date +'%Y-%m-%d')
67+
podman push ${{env.FRONTEND_CONTAINER_NAME}}:latest quay.io/geoengine/${{env.FRONTEND_CONTAINER_NAME}}:${{env.TAG_NAME}}-$(date +'%Y-%m-%d')

backend/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ FROM gcr.io/distroless/cc-debian13:nonroot
3535
COPY --from=builder /usr/src/biois/target/release/biois /usr/local/bin/biois
3636
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
3737

38+
WORKDIR /biois
39+
3840
USER nonroot
3941
EXPOSE 4040
4042
ENTRYPOINT ["/usr/local/bin/biois"]

0 commit comments

Comments
 (0)