Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHess committed Feb 29, 2024
1 parent 28fd6aa commit 7cfaf88
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ jobs:
- name: Declare image versions
id: version
run: |
if '${{ steps.filter.outputs.docfx-layer-changed }}' = 'true'
if '${{ steps.filter.outputs.docfx-layer-changed }}' == 'true'
then
echo "docfx-image-version=${{ github.event_name == 'pull_request' && format('{0}-pr{1}', env.DOCFX_VERSION, github.event.number) || env.DOCFX_VERSION }}" >> "$GITHUB_OUTPUT"
echo "docfx-image-version=${{ github.event_name == 'pull_request' && github.run_id || env.DOCFX_VERSION }}" >> "$GITHUB_OUTPUT"
else
echo "docfx-image-version=${{ env.DOCFX_VERSION }}" >> "$GITHUB_OUTPUT"
fi
if '${{ steps.filter.outputs.metadata-layer-changed }}' = 'true'
if '${{ steps.filter.outputs.metadata-layer-changed }}' == 'true'
then
echo "metadata-image-version=${{ github.event_name == 'pull_request' && format('{0}-pr{1}', env.STEELTOE_VERSIONS, github.event.number) || env.STEELTOE_VERSIONS }}" >> "$GITHUB_OUTPUT"
echo "metadata-image-version=${{ github.event_name == 'pull_request' && github.run_id || env.STEELTOE_VERSIONS }}" >> "$GITHUB_OUTPUT"
else
echo "metadata-image-version=${{ env.STEELTOE_VERSIONS }}" >> "$GITHUB_OUTPUT"
fi
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG METADATA_IMAGE_VERSION=2.5.5-3.2.6
# example --build-arg="METADATA_IMAGE_VERSION=2.5.5-3.2.6"
ARG METADATA_IMAGE_VERSION
FROM steeltoe.azurecr.io/documentation-metadata:${METADATA_IMAGE_VERSION} AS build
WORKDIR /docs
COPY . .
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-metadata
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG DOCFX_IMAGE_VERSION=2.59.4
# example --build-arg="DOCFX_IMAGE_VERSION=2.59.4"
ARG DOCFX_IMAGE_VERSION
FROM steeltoe.azurecr.io/docfx:${DOCFX_IMAGE_VERSION}
WORKDIR /docs
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion build-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ get_sources() {
local branch=$2
echo "$(basename $dest_dir) sources from $branch"
[ -d $dest_dir ] && rm -rf $dest_dir
git clone $git_sources_url $dest_dir -b $branch
git clone $git_sources_url $dest_dir -b $branch --depth 1
}

get_sources sources/v2 $v2_sources
Expand Down
4 changes: 2 additions & 2 deletions metadata.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
2:release/2.5
3:release/3.2
2:2.5.5
3:3.2.6

0 comments on commit 7cfaf88

Please # to comment.