Skip to content

Commit

Permalink
workflows: bump up to "actions/checkout@v3" (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuho authored Apr 10, 2022
1 parent 45c99af commit 0982049
Show file tree
Hide file tree
Showing 18 changed files with 301 additions and 303 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Ansible Lint
on:
push:
tags:
- '*' # Push events to every tag
- "*" # Push events to every tag
branches:
- master

Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Lint Ansible playbooks
# Lastest commit, as of February 22, 2021
Expand All @@ -24,5 +24,4 @@ jobs:
scripts/ansible/service_playbook.yml
scripts/ansible/update_playbook.yml
args:
-c scripts/ansible/.ansible-lint
args: -c scripts/ansible/.ansible-lint
4 changes: 2 additions & 2 deletions .github/workflows/buf-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
buf-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-lint-action@v1
with:
input: 'proto'
input: "proto"
8 changes: 4 additions & 4 deletions .github/workflows/build-and-test-mac-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build + Test Mac-Windows
on:
push:
tags:
- '*' # Push events to every tag
- "*" # Push events to every tag
branches:
- dev
- master
Expand All @@ -14,12 +14,12 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, macos-latest ]
os: [windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: '1.17.1' # The Go version to download (if necessary) and use.
go-version: "1.17.1" # The Go version to download (if necessary) and use.
- name: build_test
shell: bash
run: .github/workflows/build_and_test.sh
14 changes: 7 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
name: build_unit_test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.1' # The Go version to download (if necessary) and use.
- name: build_test
shell: bash
run: .github/workflows/build_and_test.sh
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.17.1" # The Go version to download (if necessary) and use.
- name: build_test
shell: bash
run: .github/workflows/build_and_test.sh
114 changes: 57 additions & 57 deletions .github/workflows/build-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,81 +3,81 @@ name: build-linux-release
on:
push:
tags:
- '*'
- "*"

jobs:
build-x86_64-binaries-tarball:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.1' # The Go version to download (if necessary) and use.
- run: go version
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.17.1" # The Go version to download (if necessary) and use.
- run: go version

- name: Build the avalanchego binaries
run: ./scripts/build.sh
- name: Build the avalanchego binaries
run: ./scripts/build.sh

- name: Install aws cli
run: |
sudo apt update
sudo apt-get install awscli
- name: Install aws cli
run: |
sudo apt update
sudo apt-get install awscli
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Create tgz package structure
run: ./.github/workflows/build-tgz-pkg.sh
env:
TAG: ${{ steps.get_version.outputs.VERSION }}
BUCKET: ${{ secrets.BUCKET }}
ARCH: "amd64"
RELEASE: "focal"
- name: Create tgz package structure
run: ./.github/workflows/build-tgz-pkg.sh
env:
TAG: ${{ steps.get_version.outputs.VERSION }}
BUCKET: ${{ secrets.BUCKET }}
ARCH: "amd64"
RELEASE: "focal"

build-arm64-binaries-tarball:
runs-on: [self-hosted, linux, ARM64, bionic]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.1' # The Go version to download (if necessary) and use.
- run: go version
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.17.1" # The Go version to download (if necessary) and use.
- run: go version

- name: Build the avalanchego binaries
run: ./scripts/build.sh
- name: Build the avalanchego binaries
run: ./scripts/build.sh

- name: Install aws cli
run: |
sudo apt update
sudo apt-get install awscli
- name: Install aws cli
run: |
sudo apt update
sudo apt-get install awscli
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Create tgz package structure
run: ./.github/workflows/build-tgz-pkg.sh
env:
TAG: ${{ steps.get_version.outputs.VERSION }}
BUCKET: ${{ secrets.BUCKET }}
ARCH: "arm64"
RELEASE: "focal"
- name: Create tgz package structure
run: ./.github/workflows/build-tgz-pkg.sh
env:
TAG: ${{ steps.get_version.outputs.VERSION }}
BUCKET: ${{ secrets.BUCKET }}
ARCH: "arm64"
RELEASE: "focal"
82 changes: 41 additions & 41 deletions .github/workflows/build-macos-release.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
# Build a macos release from the avalanchego repo
# Build a macos release from the avalanchego repo

name: build-macos-release

# Controls when the action will run.
on:
push:
tags:
- '*' # Push events to every tag
- "*" # Push events to every tag

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-mac:
# The type of runner that the job will run on
runs-on: macos-10.15
runs-on: macos-10.15

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.1' # The Go version to download (if necessary) and use.
- run: go version

# Runs a single command using the runners shell
- name: Build the avalanchego binaries
run: ./scripts/build.sh

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Install aws cli
run: |
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
- name: Create zip file
run: 7z a avalanchego-macos-${VERSION}.zip build/avalanchego build/plugins
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Upload file to S3
run: aws s3 cp avalanchego-macos-${VERSION}.zip s3://${BUCKET}/macos/
env:
BUCKET: ${{ secrets.BUCKET }}
VERSION: ${{ steps.get_version.outputs.VERSION }}
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.17.1" # The Go version to download (if necessary) and use.
- run: go version

# Runs a single command using the runners shell
- name: Build the avalanchego binaries
run: ./scripts/build.sh

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Install aws cli
run: |
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
- name: Create zip file
run: 7z a avalanchego-macos-${VERSION}.zip build/avalanchego build/plugins
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Upload file to S3
run: aws s3 cp avalanchego-macos-${VERSION}.zip s3://${BUCKET}/macos/
env:
BUCKET: ${{ secrets.BUCKET }}
VERSION: ${{ steps.get_version.outputs.VERSION }}
66 changes: 33 additions & 33 deletions .github/workflows/build-public-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,43 @@ name: build-public-ami
on:
push:
tags:
- '*'
- "*"

jobs:
build-public-ami-and-upload:
runs-on: ubuntu-20.04
timeout-minutes: 45

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.1' # The Go version to download (if necessary) and use.
- run: go version

- name: Install aws cli
run: |
sudo apt update
sudo apt-get -y install awscli python3-pip packer
- name: Install python packer
run: |
pip install python-packer boto3
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.MARKETPLACE_ID }}
aws-secret-access-key: ${{ secrets.MARKETPLACE_KEY }}
aws-region: us-east-1

- name: Create AMI and upload to marketplace
run: |
./.github/workflows/update-ami.py
env:
TAG: ${{ steps.get_version.outputs.VERSION }}
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.17.1" # The Go version to download (if necessary) and use.
- run: go version

- name: Install aws cli
run: |
sudo apt update
sudo apt-get -y install awscli python3-pip packer
- name: Install python packer
run: |
pip install python-packer boto3
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.MARKETPLACE_ID }}
aws-secret-access-key: ${{ secrets.MARKETPLACE_KEY }}
aws-region: us-east-1

- name: Create AMI and upload to marketplace
run: |
./.github/workflows/update-ami.py
env:
TAG: ${{ steps.get_version.outputs.VERSION }}
Loading

0 comments on commit 0982049

Please sign in to comment.