[camel-k] branch main updated: fix: release as an action
This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git The following commit(s) were added to refs/heads/main by this push: new 7c8b1b115 fix: release as an action 7c8b1b115 is described below commit 7c8b1b1154dd4e6760e49a4cf8d95c669c11cce7 Author: Pasquale Congiusti AuthorDate: Fri Sep 9 11:58:48 2022 +0200 fix: release as an action --- .github/actions/release-nightly/action.yml | 11 --- .github/workflows/release.yml | 23 +++ 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/actions/release-nightly/action.yml b/.github/actions/release-nightly/action.yml index 765cdcb99..2d73be46b 100644 --- a/.github/actions/release-nightly/action.yml +++ b/.github/actions/release-nightly/action.yml @@ -17,9 +17,6 @@ name: release-nightly description: 'action used to release nightly' inputs: - ref: -required: true -type: string goVersion: required: true type: string @@ -40,20 +37,12 @@ runs: uses: actions/setup-go@v2 with: go-version: ${{ inputs.goVersion }} -- name: Checkout code - uses: actions/checkout@v2 - with: -ref: ${{ inputs.ref }} -persist-credentials: false -submodules: recursive - # Reuse the testing flows used for PRs name: Smoke tests uses: ./.github/actions/e2e-common with: cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} - - name: Cache modules uses: actions/cache@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af239def0..9f3a6c5bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,10 +26,15 @@ jobs: if: github.repository == 'apache/camel-k' runs-on: ubuntu-20.04 steps: +- name: Checkout code + uses: actions/checkout@v2 + with: +ref: main +persist-credentials: false +submodules: recursive - name: Release main nightly uses: ./.github/actions/release-nightly with: -ref: "main" goVersion: "1.17.x" javaVersion: "11" @@ -37,10 +42,15 @@ jobs: if: github.repository == 'apache/camel-k' runs-on: ubuntu-20.04 steps: +- name: Checkout code + uses: actions/checkout@v2 + with: +ref: release-1.10.x +persist-credentials: false +submodules: recursive - name: Release 1.10 nightly uses: ./.github/actions/release-nightly with: -ref: "release-1.10.x" goVersion: "1.17.x" javaVersion: "11" @@ -48,10 +58,15 @@ jobs: if: github.repository == 'apache/camel-k' runs-on: ubuntu-20.04 steps: +- name: Checkout code + uses: actions/checkout@v2 + with: +ref: release-1.9.x +persist-credentials: false +submodules: recursive - name: Release 1.9 nightly uses: ./.github/actions/release-nightly with: -ref: "release-1.9.x" -goVersion: "1.17.x" +goVersion: "1.16.x" javaVersion: "11"
[camel-k] branch main updated: fix: release as an action
This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git The following commit(s) were added to refs/heads/main by this push: new b1c320ab9 fix: release as an action b1c320ab9 is described below commit b1c320ab91913c5a5fd7ba02dd07fc202a465ff8 Author: Pasquale Congiusti AuthorDate: Fri Sep 9 11:58:48 2022 +0200 fix: release as an action --- .github/actions/release-nightly/action.yml | 9 ++--- .github/workflows/release.yml | 10 +- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/actions/release-nightly/action.yml b/.github/actions/release-nightly/action.yml index 265f1130f..765cdcb99 100644 --- a/.github/actions/release-nightly/action.yml +++ b/.github/actions/release-nightly/action.yml @@ -26,11 +26,6 @@ inputs: javaVersion: required: true type: string -secrets: - registryUsername: -required: true - registryPassword: -required: true runs: using: "composite" @@ -88,8 +83,8 @@ runs: - name: Login to Container Registry uses: docker/login-action@v1 with: -username: ${{ secrets.registryUsername }} -password: ${{ secrets.registryPassword }} +username: ${{ secrets.TEST_DOCKER_HUB_USERNAME }} +password: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }} - name: Codegen run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ff36a8b6..af239def0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,9 +32,6 @@ jobs: ref: "main" goVersion: "1.17.x" javaVersion: "11" - secrets: -registryUsername: ${{ secrets.TEST_DOCKER_HUB_USERNAME }} -registryPassword: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }} v1_10_x: if: github.repository == 'apache/camel-k' @@ -46,9 +43,6 @@ jobs: ref: "release-1.10.x" goVersion: "1.17.x" javaVersion: "11" - secrets: -registryUsername: ${{ secrets.TEST_DOCKER_HUB_USERNAME }} -registryPassword: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }} v1_9_x: if: github.repository == 'apache/camel-k' @@ -60,6 +54,4 @@ jobs: ref: "release-1.9.x" goVersion: "1.17.x" javaVersion: "11" - secrets: -registryUsername: ${{ secrets.TEST_DOCKER_HUB_USERNAME }} -registryPassword: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }} +
[camel-k] branch main updated: fix: release as an action
This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git The following commit(s) were added to refs/heads/main by this push: new 7ff1f5117 fix: release as an action 7ff1f5117 is described below commit 7ff1f5117b304a1871307ff49f0f320b76d3097f Author: Pasquale Congiusti AuthorDate: Fri Sep 9 11:58:48 2022 +0200 fix: release as an action --- .github/actions/release/action.yml | 201 ++--- .github/workflows/release.yml | 3 + 2 files changed, 103 insertions(+), 101 deletions(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 6628cda85..5c946baba 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -13,116 +13,115 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -name: release +name: release-action +description: 'action used to release nightly' -on: - workflow_call: -inputs: - ref: -required: true -type: string - goVersion: -required: true -type: string - javaVersion: -required: true -type: string -secrets: - registryUsername: -required: true - registryPassword: -required: true +inputs: + ref: +required: true +type: string + goVersion: +required: true +type: string + javaVersion: +required: true +type: string +secrets: + registryUsername: +required: true + registryPassword: +required: true -jobs: - release: -runs-on: ubuntu-20.04 -steps: - - name: Set up JDK ${{ inputs.javaVersion }} -uses: actions/setup-java@v2 -with: - java-version: ${{ inputs.javaVersion }} - distribution: "temurin" - - name: Install Go ${{ inputs.goVersion }} -uses: actions/setup-go@v2 -with: - go-version: ${{ inputs.goVersion }} - - name: Checkout code -uses: actions/checkout@v2 -with: - ref: ${{ inputs.ref }} - persist-credentials: false - submodules: recursive - - # Reuse the testing flows used for PRs -name: Smoke tests -uses: ./.github/actions/e2e-common -with: - cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} - cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} +runs: + using: "composite" + + steps: +- name: Set up JDK ${{ inputs.javaVersion }} + uses: actions/setup-java@v2 + with: +java-version: ${{ inputs.javaVersion }} +distribution: "temurin" +- name: Install Go ${{ inputs.goVersion }} + uses: actions/setup-go@v2 + with: +go-version: ${{ inputs.goVersion }} +- name: Checkout code + uses: actions/checkout@v2 + with: +ref: ${{ inputs.ref }} +persist-credentials: false +submodules: recursive + +# Reuse the testing flows used for PRs + name: Smoke tests + uses: ./.github/actions/e2e-common + with: +cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} +cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} - - name: Cache modules -uses: actions/cache@v1 -with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | -${{ runner.os }}-go- - - name: Get nightly version and update date -shell: bash -run: | - V=$(make get-version | sed s/-SNAPSHOT/-nightly/) - D=$(date) - echo "VERSION=$V" >> $GITHUB_ENV - echo "UPD_DATE=$D" >> $GITHUB_ENV - - name: Global Env -run: | - echo "Using VERSION=${{ env.VERSION }}" +- name: Cache modules + uses: actions/cache@v1 + with: +path: ~/go/pkg/mod +key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} +restore-keys: | + ${{ runner.os }}-go- +- name: Get nightly version and update date + shell: bash + run: | +V=$(make get-version | sed s/-SNAPSHOT/-nightly/) +D=$(date) +echo "VERSION=$V" >> $GITHUB_ENV +echo "UPD_DATE=$D" >> $GITHUB_ENV +- name: Global Env + run: | +echo "Using VERSION=${{ env.VERSION }}" - IMAGE_NAME=docker.io/${TEST_DOCKER_HUB_USERNAME:-testcamelk}/camel-k - echo "Using IMAGE_NAME=$IMAGE_NAME" - echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV +IMAGE_NAME=docker.io/${TEST_DOCKER_HUB_USERNAME:-testcamelk}/camel-k +echo "Using IMAGE_NAME=$IMAGE_NAME" +echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV - MAVEN_REPOSITORY=$(make get-staging-repo) - echo "Using MAVEN_REPOSITORY=$MAVEN_REPOSITORY" -