Skip to content

Commit 1fa5338

Browse files
committed
Update build_and_release.yml and publish_docker_images.yml
1 parent 177a4cc commit 1fa5338

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build_and_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
strategy:
3737
matrix:
3838
goos: [linux, windows, darwin]
39-
goarch: [amd64, arm64, 386, loong64]
39+
goarch: [amd64, arm64, 386]
40+
# goarch: [amd64, arm64, 386, loong64]
4041
exclude:
4142
- goarch: arm64
4243
goos: windows

.github/workflows/publish_docker_images.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ jobs:
5454
registry: ghcr.io
5555
username: ${{ github.actor }}
5656
password: ${{ secrets.GITHUB_TOKEN }}
57+
- name: Set VERSION ENV
58+
run: echo VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
5759
- name: Convert to lowercase
5860
run: |
5961
echo LATEST_TAG=ghcr.io/${{ github.repository }}/opensca-cli:latest | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
6062
echo VERSION_TAG=ghcr.io/${{ github.repository }}/opensca-cli:${{ env.VERSION }} | tr '[:upper:]' '[:lower:]' >> ${GITHUB_ENV}
6163
- name: Print env variables
6264
run: |
65+
echo "GITHUB_REPOSITORY=${{ github.repository }}"
6366
echo "LATEST_TAG=${{ env.LATEST_TAG }}"
6467
echo "VERSION_TAG=${{ env.VERSION_TAG }}"
6568
- name: Build and push to GitHub Packages

0 commit comments

Comments
 (0)