Skip to content

Commit

Permalink
chore(devops): upgrade runners to ubuntu latest (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Talal Ashraf authored Jul 24, 2023
1 parent 4677db9 commit 318b819
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build-docker-image-and-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, macos-latest]
os: [ubuntu-latest, macos-latest]
arch: [amd64, arm64]
exclude:
- {os: "ubuntu-18.04", arch: "arm64"}
- {os: "ubuntu-latest", arch: "arm64"}

permissions:
contents: write
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- name: build linux binaries
env:
SEMVER: ${{ github.event.inputs.tag }}
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'ubuntu-latest'
run: |
OS="linux"
ARCH="${{ matrix.arch }}"
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
os: [ubuntu-latest]

permissions:
contents: write
Expand All @@ -154,37 +154,36 @@ jobs:
submodules: recursive

- name: Install Cosign
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'ubuntu-latest'
uses: sigstore/cosign-installer@main

- name: Install SSH key
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'ubuntu-latest'
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.CICD_RSA_KEY }}

- name: Build docker image
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'ubuntu-latest'
run: |
make docker-image
- name: Login to DockerHub
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'ubuntu-latest'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Push to DockerHub (release)
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'ubuntu-latest'
run: |
docker tag axelar/tofnd:latest axelarnet/tofnd:${{ github.event.inputs.tag }}
docker push axelarnet/tofnd:${{ github.event.inputs.tag }}
- name: Sign the images with GitHub OIDC
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'ubuntu-latest'
run: cosign sign --oidc-issuer https://token.actions.githubusercontent.com ${TAGS}
env:
TAGS: axelarnet/tofnd:${{ github.event.inputs.tag }}
COSIGN_EXPERIMENTAL: 1

2 changes: 1 addition & 1 deletion .github/workflows/build-latest-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-18.04
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code and submodule
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os:
# - ubuntu-18.04
# - ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os:
# - ubuntu-18.04
# - ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.0.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os:
# - ubuntu-18.04
# - ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
Expand Down

0 comments on commit 318b819

Please sign in to comment.