Skip to content

Commit

Permalink
update: ignore md5sum and update ghcr info
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperChen-CC committed Jan 4, 2024
1 parent 1fa5338 commit c4fba14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ jobs:
project_path: "./"
binary_name: opensca-cli
sha256sum: true
md5sum: false
extra_files: README.md config.json db-demo.json VERSION
ldflags: "-s -w -X 'main.version=${{ env.RELEASE_VERSION }}' "
20 changes: 10 additions & 10 deletions .github/workflows/publish_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set VERSION ENV
run: echo VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
- name: Convert to lowercase
run: |
echo LATEST_TAG=ghcr.io/${{ github.repository }}/opensca-cli:latest | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
echo VERSION_TAG=ghcr.io/${{ github.repository }}/opensca-cli:${{ env.VERSION }} | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
- name: Print env variables
run: |
echo "GITHUB_REPOSITORY=${{ github.repository }}"
echo "LATEST_TAG=${{ env.LATEST_TAG }}"
echo "VERSION_TAG=${{ env.VERSION_TAG }}"
# - name: Convert to lowercase
# run: |
# echo LATEST_TAG=ghcr.io/${{ github.repository }}/opensca-cli:latest | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
# echo VERSION_TAG=ghcr.io/${{ github.repository }}/opensca-cli:${{ env.VERSION }} | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
# - name: Print env variables
# run: |
# echo "GITHUB_REPOSITORY=${{ github.repository }}"
# echo "LATEST_TAG=${{ env.LATEST_TAG }}"
# echo "VERSION_TAG=${{ env.VERSION_TAG }}"
- name: Build and push to GitHub Packages
uses: docker/build-push-action@v5
with:
Expand All @@ -74,4 +74,4 @@ jobs:
push: true
build-args: |
VERSION=${{ env.VERSION }}
tags: ${{ env.LATEST_TAG }}, ${{ env.VERSION_TAG }}
tags: ghcr.io/${{ github.repository }}/opensca-cli:latest, ghcr.io/${{ github.repository }}/opensca-cli:${{ env.VERSION }}

0 comments on commit c4fba14

Please sign in to comment.