Skip to content

Commit

Permalink
ghcr staging
Browse files Browse the repository at this point in the history
  • Loading branch information
KevDevSha authored Jul 30, 2024
1 parent e5eefbb commit 50675f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker-configure-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ on:
staging-repo:
required: false
type: string
ghcr-staging-repo:
required: false
type: string
tags:
required: true
type: string
Expand Down Expand Up @@ -79,7 +82,9 @@ jobs:
###################
if [ "${{ inputs.staging }}" = "true" ]; then
STAGING_REPO=${{ inputs.staging-repo }}
GHCR_STAGING_REPO=${{ inputs.ghcr-staging-repo }}
IMAGE_TAG=${STAGING_REPO}:${{ inputs.image-uuid }}
GHCR_IMAGE_TAG=${GHCR_STAGING_REPO}:${{ inputs.image-uuid }}
IMAGE_CACHE="${STAGING_REPO}:${{ inputs.image-name }}-buildcache"
else
IMAGE_TAG=${{ inputs.tags }}
Expand All @@ -90,13 +95,15 @@ jobs:
echo "IMAGE_CACHE=${IMAGE_CACHE}" >> ${GITHUB_ENV}
- name: IMAGE_TAG = ${{ env.IMAGE_TAG }}
run: echo ${{ env.IMAGE_TAG }}
run: |

Check failure on line 98 in .github/workflows/docker-configure-build-push.yaml

View workflow job for this annotation

GitHub Actions / code-quality (3.10, [dev])

98:13 [trailing-spaces] trailing spaces
echo ${{ env.IMAGE_TAG }}
echo ${{ env.GHCR_IMAGE_TAG }}
- name: Build and Push the Docker Image
uses: docker/build-push-action@v3
with:
context: ${{ inputs.context }}
tags: ${{ env.IMAGE_TAG }}
tags: ${{ env.IMAGE_TAG }}, ${{ env.GHCR_IMAGE_TAG }}
target: ${{ inputs.target }}
push: ${{ inputs.push }}
cache-from: type=registry,ref=${{ env.IMAGE_CACHE }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
push: true
staging: true
staging-repo: mosaicml/ci-staging
ghcr-staging-repo: ghcr.io/databricks-mosaic/ci-staging
tags: ${{ matrix.TAGS }}
target: ${{ matrix.TARGET }}
secrets:
Expand Down

0 comments on commit 50675f7

Please sign in to comment.