diff --git a/.github/workflows/release-amd64.yaml b/.github/workflows/release-amd64.yaml index 5d25a50d35..0223c1522e 100644 --- a/.github/workflows/release-amd64.yaml +++ b/.github/workflows/release-amd64.yaml @@ -5,9 +5,6 @@ on: target-arch: required: true type: string - release-type: - required: true - type: string jobs: build-kata-static-tarball-amd64: @@ -41,11 +38,11 @@ jobs: - name: build-and-push-kata-deploy-ci-amd64 id: build-and-push-kata-deploy-ci-amd64 run: | - # We need to do such trick here as the format of the $GITHUB_REF + # We need to do such trick here as the format of the $GITHUB_REF # is "refs/tags/" tag=$(echo $GITHUB_REF | cut -d/ -f3-) if [ "${tag}" = "main" ]; then - tag=$(RELEASE_TYPE=${{ inputs.release-type }} ./tools/packaging/release/release.sh next-release-version) + tag=$(./tools/packaging/release/release.sh release-version) tags=(${tag} "latest") else tags=(${tag}) diff --git a/.github/workflows/release-arm64.yaml b/.github/workflows/release-arm64.yaml index cef1615520..25ef15fa26 100644 --- a/.github/workflows/release-arm64.yaml +++ b/.github/workflows/release-arm64.yaml @@ -5,9 +5,6 @@ on: target-arch: required: true type: string - release-type: - required: true - type: string jobs: build-kata-static-tarball-arm64: @@ -41,11 +38,11 @@ jobs: - name: build-and-push-kata-deploy-ci-arm64 id: build-and-push-kata-deploy-ci-arm64 run: | - # We need to do such trick here as the format of the $GITHUB_REF + # We need to do such trick here as the format of the $GITHUB_REF # is "refs/tags/" tag=$(echo $GITHUB_REF | cut -d/ -f3-) if [ "${tag}" = "main" ]; then - tag=$(RELEASE_TYPE=${{ inputs.release-type }} ./tools/packaging/release/release.sh next-release-version) + tag=$(./tools/packaging/release/release.sh release-version) tags=(${tag} "latest") else tags=(${tag}) diff --git a/.github/workflows/release-ppc64le.yaml b/.github/workflows/release-ppc64le.yaml index 35733212e8..b048b6cda7 100644 --- a/.github/workflows/release-ppc64le.yaml +++ b/.github/workflows/release-ppc64le.yaml @@ -5,9 +5,6 @@ on: target-arch: required: true type: string - release-type: - required: true - type: string jobs: build-kata-static-tarball-ppc64le: @@ -46,11 +43,11 @@ jobs: - name: build-and-push-kata-deploy-ci-ppc64le id: build-and-push-kata-deploy-ci-ppc64le run: | - # We need to do such trick here as the format of the $GITHUB_REF + # We need to do such trick here as the format of the $GITHUB_REF # is "refs/tags/" tag=$(echo $GITHUB_REF | cut -d/ -f3-) if [ "${tag}" = "main" ]; then - tag=$(RELEASE_TYPE=${{ inputs.release-type }} ./tools/packaging/release/release.sh next-release-version) + tag=$(./tools/packaging/release/release.sh release-version) tags=(${tag} "latest") else tags=(${tag}) diff --git a/.github/workflows/release-s390x.yaml b/.github/workflows/release-s390x.yaml index fa8d64d85b..6fc85b4d38 100644 --- a/.github/workflows/release-s390x.yaml +++ b/.github/workflows/release-s390x.yaml @@ -5,9 +5,6 @@ on: target-arch: required: true type: string - release-type: - required: true - type: string jobs: build-kata-static-tarball-s390x: @@ -42,11 +39,11 @@ jobs: - name: build-and-push-kata-deploy-ci-s390x id: build-and-push-kata-deploy-ci-s390x run: | - # We need to do such trick here as the format of the $GITHUB_REF + # We need to do such trick here as the format of the $GITHUB_REF # is "refs/tags/" tag=$(echo $GITHUB_REF | cut -d/ -f3-) if [ "${tag}" = "main" ]; then - tag=$(RELEASE_TYPE=${{ inputs.release-type }} ./tools/packaging/release/release.sh next-release-version) + tag=$(./tools/packaging/release/release.sh release-version) tags=(${tag} "latest") else tags=(${tag}) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dbd8db1acd..17a499b020 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,8 +5,6 @@ on: jobs: release: runs-on: ubuntu-latest - env: - RELEASE_TYPE: ${{ inputs.release-type }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -29,7 +27,6 @@ jobs: uses: ./.github/workflows/release-amd64.yaml with: target-arch: amd64 - release-type: ${{ inputs.release-type }} secrets: inherit build-and-push-assets-arm64: @@ -37,7 +34,6 @@ jobs: uses: ./.github/workflows/release-arm64.yaml with: target-arch: arm64 - release-type: ${{ inputs.release-type }} secrets: inherit build-and-push-assets-s390x: @@ -45,7 +41,6 @@ jobs: uses: ./.github/workflows/release-s390x.yaml with: target-arch: s390x - release-type: ${{ inputs.release-type }} secrets: inherit build-and-push-assets-ppc64le: @@ -53,14 +48,11 @@ jobs: uses: ./.github/workflows/release-ppc64le.yaml with: target-arch: ppc64le - release-type: ${{ inputs.release-type }} secrets: inherit publish-multi-arch-images: runs-on: ubuntu-latest needs: [build-and-push-assets-amd64, build-and-push-assets-arm64, build-and-push-assets-s390x, build-and-push-assets-ppc64le] - env: - RELEASE_TYPE: ${{ inputs.release-type }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -92,8 +84,6 @@ jobs: upload-multi-arch-static-tarball: needs: [build-and-push-assets-amd64, build-and-push-assets-arm64, build-and-push-assets-s390x, build-and-push-assets-ppc64le] runs-on: ubuntu-latest - env: - RELEASE_TYPE: ${{ inputs.release-type }} steps: - uses: actions/checkout@v4 @@ -149,8 +139,6 @@ jobs: upload-versions-yaml: needs: release runs-on: ubuntu-latest - env: - RELEASE_TYPE: ${{ inputs.release-type }} steps: - uses: actions/checkout@v4 - name: upload versions.yaml @@ -162,8 +150,6 @@ jobs: upload-cargo-vendored-tarball: needs: release runs-on: ubuntu-latest - env: - RELEASE_TYPE: ${{ inputs.release-type }} steps: - uses: actions/checkout@v4 - name: generate-and-upload-tarball @@ -175,8 +161,6 @@ jobs: upload-libseccomp-tarball: needs: release runs-on: ubuntu-latest - env: - RELEASE_TYPE: ${{ inputs.release-type }} steps: - uses: actions/checkout@v4 - name: download-and-upload-tarball