This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
forked from calcom/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update docker to add option for custom branch
- Loading branch information
1 parent
c87312f
commit 77d6201
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,11 @@ on: | |
- completed | ||
# Allow running workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch to build on' | ||
type: string | ||
default: main | ||
# Uncomment below to allow specific version workflow run | ||
# inputs: | ||
# version: | ||
|
@@ -50,9 +55,15 @@ jobs: | |
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Git submodule update | ||
- name: Fetch git repo | ||
id: fetch-git | ||
run: | | ||
git submodule update --init | ||
rm -rf calcom | ||
mkdir calcom | ||
cd calcom | ||
BRANCH=${{ inputs.branch }} | ||
git clone -b $BRANCH [email protected]:YouthCatalyst/calendar.git . | ||
echo "git-branch=${BRANCH#RELEASE/}" >> "$GITHUB_OUTPUT" | ||
- name: Log in to the Docker Hub registry | ||
uses: docker/login-action@v3 | ||
|
@@ -80,6 +91,7 @@ jobs: | |
# Add flavor latest only on full releases, not on pre-releases | ||
flavor: | | ||
latest=${{ !github.event.release.prerelease }} | ||
type=raw,value=${{ steps.fetch-git.outputs.git-branch }} | ||
- name: Copy env | ||
run: | | ||
|