UCloud release #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "UCloud release" | |
on: | |
push: | |
tags: | |
- "test*" | |
jobs: | |
build-im2: | |
strategy: | |
matrix: | |
container_image: ["almalinux:8", "almalinux:9"] | |
runs-on: ubuntu-latest | |
container: "${{ matrix.container_image }}" | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v4 | |
- name: Get tag version (without 'v') | |
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/test}" >> $GITHUB_ENV | |
- name: Display tag name | |
run: | | |
echo "Tag pushed: ${{ env.TAG_NAME }}" | |
echo "${{ env.TAG_NAME }}" > backend/version.txt | |
- name: "Install dependencies (DNF)" | |
run: "dnf install -y git make wget rpm-build rpmdevtools gcc" | |
- name: "Install Go 1.23.5" | |
run: | | |
cd /tmp; | |
wget 'https://go.dev/dl/go1.23.5.linux-amd64.tar.gz'; | |
tar xvf go*; | |
ln -s `realpath go/bin/go` /usr/bin/go; | |
ln -s `realpath go/bin/gofmt` /usr/bin/gofmt; | |
cd $GITHUB_WORKSPACE; | |
- name: "Build ucloud-psql" | |
run: | | |
cd ./provider-integration/rpmbuild | |
make ucloud-psql | |
cd $GITHUB_WORKSPACE | |
- name: "Build ucloud-envoy" | |
run: | | |
cd ./provider-integration/rpmbuild | |
make ucloud-envoy | |
cd $GITHUB_WORKSPACE | |
- name: "Build ucloud-im" | |
run: | | |
cd ./provider-integration/rpmbuild | |
make ucloud-im | |
cd $GITHUB_WORKSPACE | |
- name: "ucloud-psql artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ucloud-psql | |
path: ./provider-integration/rpmbuild/ucloud-psql/RPMS/x86_64/* | |
- name: "ucloud-envoy artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ucloud-envoy | |
path: ./provider-integration/rpmbuild/ucloud-envoy/RPMS/x86_64/* | |
- name: "ucloud-im artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ucloud-im | |
path: ./provider-integration/rpmbuild/ucloud-im/RPMS/x86_64/* | |