Skip to content

Commit c4fba14

Browse files
committed
update: ignore md5sum and update ghcr info
1 parent 1fa5338 commit c4fba14

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/build_and_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ jobs:
6767
project_path: "./"
6868
binary_name: opensca-cli
6969
sha256sum: true
70+
md5sum: false
7071
extra_files: README.md config.json db-demo.json VERSION
7172
ldflags: "-s -w -X 'main.version=${{ env.RELEASE_VERSION }}' "

.github/workflows/publish_docker_images.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ jobs:
5656
password: ${{ secrets.GITHUB_TOKEN }}
5757
- name: Set VERSION ENV
5858
run: echo VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
59-
- name: Convert to lowercase
60-
run: |
61-
echo LATEST_TAG=ghcr.io/${{ github.repository }}/opensca-cli:latest | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
62-
echo VERSION_TAG=ghcr.io/${{ github.repository }}/opensca-cli:${{ env.VERSION }} | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
63-
- name: Print env variables
64-
run: |
65-
echo "GITHUB_REPOSITORY=${{ github.repository }}"
66-
echo "LATEST_TAG=${{ env.LATEST_TAG }}"
67-
echo "VERSION_TAG=${{ env.VERSION_TAG }}"
59+
# - name: Convert to lowercase
60+
# run: |
61+
# echo LATEST_TAG=ghcr.io/${{ github.repository }}/opensca-cli:latest | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
62+
# echo VERSION_TAG=ghcr.io/${{ github.repository }}/opensca-cli:${{ env.VERSION }} | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
63+
# - name: Print env variables
64+
# run: |
65+
# echo "GITHUB_REPOSITORY=${{ github.repository }}"
66+
# echo "LATEST_TAG=${{ env.LATEST_TAG }}"
67+
# echo "VERSION_TAG=${{ env.VERSION_TAG }}"
6868
- name: Build and push to GitHub Packages
6969
uses: docker/build-push-action@v5
7070
with:
@@ -74,4 +74,4 @@ jobs:
7474
push: true
7575
build-args: |
7676
VERSION=${{ env.VERSION }}
77-
tags: ${{ env.LATEST_TAG }}, ${{ env.VERSION_TAG }}
77+
tags: ghcr.io/${{ github.repository }}/opensca-cli:latest, ghcr.io/${{ github.repository }}/opensca-cli:${{ env.VERSION }}

0 commit comments

Comments
 (0)