Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsanggds committed Oct 22, 2024
1 parent 28bc0d6 commit cee9569
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@ jobs:
run: |
buildType="${{ env.BUILD_TYPE }}"
if [ "$buildType" = "build_push_ckan_with_gittag" ]; then
TAG=`echo $(git fetch -t -q && git tag | sort --version-sort | tail -n1)`
echo "GH_REF=$TAG" >> $GITHUB_ENV
else
echo "GH_REF=${{ github.sha }}" >> $GITHUB_ENV
fi
echo "GH_REF=${{ inputs.gitRef || github.ref }}" >> $GITHUB_ENV
case $buildType in
"build_only" | "build_push_pycsw")
Expand Down Expand Up @@ -260,12 +255,6 @@ jobs:
contents: read
packages: write
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.gitRef || github.ref }}
show-progress: false

- name: Setup Docker BuildX
uses: docker/setup-buildx-action@v3

Expand All @@ -281,16 +270,7 @@ jobs:
run: |
buildType="${{ env.BUILD_TYPE }}"
if [ "$buildType" = "build_push_ckan_with_gittag" ]; then
sudo apt-get install -y git
# mkdir -p /tmp/digests/app
TAG=`echo $(git fetch -t -q && git tag | sort --version-sort | tail -n1)`
echo "GH_REF=$TAG" >> $GITHUB_ENV
else
echo "GH_REF=${{ github.sha }}" >> $GITHUB_ENV
fi
echo "GH_REF=${{ inputs.gitRef || github.ref }}" >> $GITHUB_ENV
case $buildType in
"build_only" | "build_push_pycsw")
Expand Down

0 comments on commit cee9569

Please sign in to comment.