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
17 changes: 16 additions & 1 deletion .github/workflows/release-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
required: true
default: 'dev'

permissions:
id-token: write
contents: read

jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -23,6 +27,15 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Configure AWS credentials via OIDC
uses: aws-actions/configure-aws-credentials@v5
with:
role-to-assume: ${{ secrets.ECR_ROLE }}
aws-region: us-east-1

- name: Login to Amazon ECR
uses: aws-actions/amazon-ecr-login@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -47,4 +60,6 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
push: true
tags: docker.io/datastax/pulsar-admin-console:${{ env.TAG }}
tags: |
${{ secrets.ECR_REGISTRY }}/datastax/pulsar-admin-console:${{ env.TAG }}
docker.io/datastax/pulsar-admin-console:${{ env.TAG }}
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16 as UI-BUILD
FROM node:16 AS ui-build

WORKDIR /build

Expand All @@ -25,7 +25,7 @@ WORKDIR /home/appuser/
USER 10001:0

RUN mkdir -p dashboard/dist && mkdir server && mkdir config && ls
COPY --from=UI-BUILD --chown=10001:0 /build/dist /home/appuser/dashboard/dist
COPY --from=ui-build --chown=10001:0 /build/dist /home/appuser/dashboard/dist
COPY --chown=10001:0 config/default.json /home/appuser/config/
COPY --chown=10001:0 server/package*.json /home/appuser/server/
COPY --chown=10001:0 server/*.js /home/appuser/server/
Expand All @@ -35,7 +35,7 @@ WORKDIR /home/appuser/server

# OpenShift compatibility
RUN chmod g+w /home/appuser
ENV HOME /home/appuser
ENV HOME=/home/appuser

EXPOSE 8080 8081 6454 6455

Expand Down