diff --git a/.github/workflows/ci_skip.yml b/.github/workflows/ci_skip.yml new file mode 100644 index 00000000..454e2dd9 --- /dev/null +++ b/.github/workflows/ci_skip.yml @@ -0,0 +1,26 @@ +name: ci +on: + pull_request: + branches: + - main + - release-* + paths-ignore: + - .github/workflows/ci.yml + - Makefile + - go.* + - "**.go" + +jobs: + pull: + strategy: + matrix: + arch: [amd64, arm64] + job: + - verify + - build + - unit-test + - integration-test + runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }} + + steps: + - run: echo "Not required to run pull jobs." diff --git a/.github/workflows/release_latest.yml b/.github/workflows/release_latest.yml index 9e107e44..104e9cd4 100644 --- a/.github/workflows/release_latest.yml +++ b/.github/workflows/release_latest.yml @@ -21,15 +21,18 @@ jobs: with: go-version: 1.20.x - - name: Configure awscli + - name: Prepare tools 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 + dnf install -y make python3 - name: Build binary and related tools run: make build + - name: Configure awscli + run: | + pip3 install awscli + printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure + # TODO: release on github package / release - name: Upload files run: | diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index c3afca58..54ac64f2 100644 --- a/.github/workflows/release_tag.yml +++ b/.github/workflows/release_tag.yml @@ -20,15 +20,18 @@ jobs: with: go-version: 1.20.x - - name: Configure awscli + - name: Prepare tools 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 + dnf install -y make python3 - name: Build binary and related tools run: make build + - name: Configure awscli + run: | + pip3 install awscli + printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure + - name: Upload files run: | GIT_TAG=${GITHUB_REF##*/}