Skip to content

Commit

Permalink
build(ci): ability to skip release verification for dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Nov 5, 2024
1 parent 46e883a commit 49e6327
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/create-and-publish-docker-dev-manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
required: true
default: 'master'
type: string
verify_release:
description: 'enable or disable release verification'
required: true
default: false
type: boolean

jobs:
image-manually:
Expand All @@ -26,3 +31,4 @@ jobs:
ui_repo_ref: ${{ github.event.inputs.ui_repo_ref }}
server_repo_ref: ${{ github.event.inputs.server_repo_ref }}
image_name_prefix: joinmarket-webui/jam-dev-
verify_release: ${{ github.event.inputs.verify_release }}
8 changes: 7 additions & 1 deletion .github/workflows/create-and-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ on:
required: true
type: string
image_name_prefix:
description: 'image name prefix: e.g. joinmarket-webui/jam-'
description: 'image name prefix (e.g. joinmarket-webui/jam-)'
required: true
type: string
verify_release:
description: 'enable or disable release verification'
required: false
default: true
type: boolean

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -72,3 +77,4 @@ jobs:
build-args: |
JAM_REPO_REF=${{ inputs.ui_repo_ref }}
JM_SERVER_REPO_REF=${{ inputs.server_repo_ref }}
VERIFY_RELEASE=${{ inputs.verify_release }}
3 changes: 2 additions & 1 deletion standalone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ RUN apk add --no-cache --update git gnupg

# --- UI builder
FROM builder-base AS ui-builder
ARG VERIFY_RELEASE
ARG JAM_REPO
ARG JAM_REPO_REF
ARG VERIFY_RELEASE

COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/lib /usr/local/lib
Expand Down Expand Up @@ -78,6 +78,7 @@ RUN git clone "https://github.com/davmac314/dinit" . --depth=1 --branch "v$DINIT

# --- SERVER builder
FROM builder-base AS server-builder
ARG VERIFY_RELEASE
ARG JM_SERVER_REPO
ARG JM_SERVER_REPO_REF

Expand Down
2 changes: 1 addition & 1 deletion ui-only/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ RUN apk add --no-cache --update git gnupg

# --- UI builder
FROM builder-base AS builder
ARG VERIFY_RELEASE
ARG JAM_REPO
ARG JAM_REPO_REF
ARG VERIFY_RELEASE

WORKDIR /usr/src/app

Expand Down

0 comments on commit 49e6327

Please sign in to comment.