Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build pnpm docker image with config from a different repo #147

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
small fixes
tomasvalkering committed Sep 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 721619cfd1aef86da23d6bc346f4632e6d0660db
15 changes: 3 additions & 12 deletions .github/workflows/pnpm_docker_image_from_config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build and Push Docker Images on release
name: Build and Push Docker Images from repo with config files
on:
workflow_call:
inputs:
ref_name:
required: true
type: string
description: tag or branch name
description: tag or branch name of this repository, ie the one with the config
checkout_lfs:
required: false
default: false
@@ -102,10 +102,6 @@ on:
required: true
type: string
description: Remote repository ref to checkout
config_ref:
required: true
type: string
description: Config ref to checkout
secrets:
acr_registry:
required: true
@@ -149,11 +145,10 @@ jobs:
lfs: ${{ inputs.checkout_lfs }}
submodules: 'recursive'
path: config_repo
ref: ${{ inputs.config_ref }}
ref: ${{ inputs.ref_name }}

- name: Copy config
run: |
ls
cp config_repo/.env.${{ inputs.release_env }} ${{ inputs.app_directory }}/.env.${{ inputs.release_env }}

- uses: pnpm/action-setup@v4
@@ -216,10 +211,6 @@ jobs:

- name: Tar Build dir to docker
run: |
ls
ls docker/ || true
ls ../docker || true
pwd
tar -czvf docker/${{ inputs.app_name }}/bin/${{ inputs.app_name }}.tar.gz -C ${{ inputs.app_directory }} ${{ inputs.dirs_for_docker_build }}

- name: Set IMAGE_NAME