diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abd3695f..3261329c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,11 @@ on: branches: - main - release-* + paths: + - .github/workflows/ci.yml + - Makefile + - go.* + - '**.go' jobs: pull: @@ -23,7 +28,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} path: go/src/github.com/${{ github.repository }} - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: 1.20.x diff --git a/.github/workflows/release_latest.yml b/.github/workflows/release_latest.yml index 3cc0049d..9e107e44 100644 --- a/.github/workflows/release_latest.yml +++ b/.github/workflows/release_latest.yml @@ -12,21 +12,18 @@ jobs: matrix: arch: [amd64, arm64] runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }} - container: ${{ fromJson('{"amd64":"docker.io/centos:8", "arm64":"docker.io/centos:8"}')[matrix.arch] }} + container: ${{ fromJson('{"amd64":"docker.io/rockylinux:8", "arm64":"docker.io/rockylinux:8"}')[matrix.arch] }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: 1.20.x - - uses: actions/setup-python@v5 - with: - python-version: "3.10.x" - - name: Configure awscli run: | + dnf install -y python3 pip3 install awscli printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index ae8f3962..c3afca58 100644 --- a/.github/workflows/release_tag.yml +++ b/.github/workflows/release_tag.yml @@ -11,21 +11,18 @@ jobs: matrix: arch: [amd64, arm64] runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }} - container: ${{ fromJson('{"amd64":"docker.io/centos:8", "arm64":"docker.io/centos:8"}')[matrix.arch] }} + container: ${{ fromJson('{"amd64":"docker.io/rockylinux:8", "arm64":"docker.io/rockylinux:8"}')[matrix.arch] }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: 1.20.x - - uses: actions/setup-python@v5 - with: - python-version: "3.10.x" - - name: Configure awscli run: | + dnf install -y python3 pip3 install awscli printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure