Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanThrane committed Jan 31, 2025
1 parent bfd762d commit 33817bd
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 86 deletions.
72 changes: 0 additions & 72 deletions .github/actions/im2-rpms.yml

This file was deleted.

76 changes: 62 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,68 @@
name: "UCloud release"
on:
push:
tags:
- "test*"
name: "IM2 RPM release"

jobs:
build-im2-rhel8:
build-im2:
runs-on: ubuntu-latest
strategy:
matrix:
container_image: ["almalinux:8", "almalinux:9"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/im2-rpms.yml
- 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:
container_image: almalinux:8
build-im2-rhel9:
steps:
- uses: actions/checkout@v4
- uses: ./github/actions/im2-rpms.yml
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:
container_image: almalinux:9
name: ucloud-im
path: ./provider-integration/rpmbuild/ucloud-im/RPMS/x86_64/*

0 comments on commit 33817bd

Please sign in to comment.