Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/alpha-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Alpha
name: Build and Publish Alpha

on:
workflow_dispatch:
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

- name: Build and push preprod image
- name: Build and push alpha image
uses: docker/[email protected]
with:
context: .
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/preprod-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Preprod
name: Build and Publish Preprod

on:
workflow_dispatch:
Expand Down Expand Up @@ -33,21 +33,11 @@ jobs:
with:
ref: ${{ github.event.inputs.branch }}

- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ${{ secrets.DOCKER_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

- name: Docker metadata
id: meta
uses: docker/[email protected]
with:
images: ${{ secrets.DOCKER_REGISTRY_URL }}/hyperion
images: ${{ secrets.DOCKER_REGISTRY_IDENTIFER }}/hyperion
tags: |
type=raw,value=${{ github.event.inputs.preprod_env }}
type=raw,value=preprod-latest,enable={{is_default_branch}}
Expand All @@ -56,6 +46,16 @@ jobs:
preprod.environment=${{ github.event.inputs.preprod_env }}
preprod.branch=${{ github.event.inputs.branch }}

- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ${{ secrets.DOCKER_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

- name: Build and push preprod image
uses: docker/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build and Publish Hyperion Docker Images
name: Build and Publish Hyperion Prod Image
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"

jobs:
docker:
build-and-deploy-prod:
runs-on: ubuntu-latest
timeout-minutes: 10

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ ENV PYTHONUNBUFFERED=1
ENV UV_COMPILE_BYTECODE=1

# Create non-root user early for better security
RUN groupadd --gid 1000 hyperion && \
useradd --uid 1000 --gid hyperion --shell /bin/bash --create-home hyperion
RUN groupadd --gid 10101 hyperion && \
useradd --uid 10101 --gid hyperion --shell /bin/bash --create-home hyperion

WORKDIR /hyperion

Expand Down