Skip to content

Commit

Permalink
simplify docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer committed Oct 26, 2024
1 parent a047bbc commit 3f5a05f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ jobs:
context: .
push: true
build-args: |
APP_IMAGE_TAG_CODE=hetzner-code
APP_IMAGE_TAG_BASE=hetzner-base
OCELOT_VERSION=hetzner
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Expand Down
7 changes: 3 additions & 4 deletions docker/backend.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
ARG APP_IMAGE_TAG_BASE=latest-base
ARG APP_IMAGE_TAG_CODE=latest-code
ARG OCELOT_VERSION=master

FROM ghcr.io/ocelot-social-community/ocelot-social/backend:${APP_IMAGE_TAG_CODE} AS build
FROM ghcr.io/ocelot-social-community/ocelot-social/backend:${OCELOT_VERSION}-code AS build

FROM ghcr.io/ocelot-social-community/ocelot-social/backend:${APP_IMAGE_TAG_BASE} AS branded
FROM ghcr.io/ocelot-social-community/ocelot-social/backend:${OCELOT_VERSION}-base AS branded
COPY --from=build /build .
4 changes: 2 additions & 2 deletions docker/maintenance.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG APP_IMAGE_TAG_CODE=latest-code
ARG OCELOT_VERSION=master

FROM ghcr.io/ocelot-social-community/ocelot-social/maintenance:${APP_IMAGE_TAG_CODE} as build
FROM ghcr.io/ocelot-social-community/ocelot-social/maintenance:${OCELOT_VERSION}-code AS build

FROM nginx:alpine AS branded
COPY --from=build ./app/dist/ /usr/share/nginx/html/
Expand Down
7 changes: 3 additions & 4 deletions docker/webapp.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
ARG APP_IMAGE_TAG_BASE=latest-base
ARG APP_IMAGE_TAG_CODE=latest-code
ARG OCELOT_VERSION=master

FROM ghcr.io/ocelot-social-community/ocelot-social/webapp:${APP_IMAGE_TAG_CODE} AS build
FROM ghcr.io/ocelot-social-community/ocelot-social/webapp:${OCELOT_VERSION}-code AS build

FROM ghcr.io/ocelot-social-community/ocelot-social/webapp:${APP_IMAGE_TAG_BASE} AS branded
FROM ghcr.io/ocelot-social-community/ocelot-social/webapp:${OCELOT_VERSION}-base AS branded
COPY --from=build /build .

0 comments on commit 3f5a05f

Please sign in to comment.