added ubuntu-latest runner

pull/1097/head
guptaankit015 2021-08-26 19:51:54 +05:30 committed by Rhythm
parent 05ed6e04da
commit 3a039f96a7
3 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@ name: CI
on: [ push ] on: [ push ]
jobs: jobs:
cancel: cancel:
runs-on: [self-hosted] runs-on: [ubuntu-latest]
name: Cancel Previous Runs name: Cancel Previous Runs
if: always() if: always()
steps: steps:
@ -20,15 +20,15 @@ jobs:
build-statping-docker-image: build-statping-docker-image:
name: Docker image - statping name: Docker image - statping
runs-on: [self-hosted] runs-on: [ubuntu-latest]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build and push - name: Build and push
uses: docker/build-push-action@v1 uses: docker/build-push-action@v1
with: with:
registry: c.rzp.io registry: c.rzp.io
username: ${{ secrets.HARBOR_DOCKER_USERNAME }} username: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
password: ${{ secrets.HARBOR_DOCKER_PASSWORD }} password: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}
repository: ${{ github.repository }} repository: ${{ github.repository }}
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
build_args: GIT_COMMIT_HASH=${{ github.sha }},GIT_TOKEN=${{ secrets.GIT_TOKEN }} build_args: GIT_COMMIT_HASH=${{ github.sha }},GIT_TOKEN=${{ secrets.GIT_TOKEN }}
@ -37,7 +37,7 @@ jobs:
fmt: fmt:
name: fmt name: fmt
runs-on: [self-hosted] runs-on: [ubuntu-latest]
continue-on-error: false continue-on-error: false
steps: steps:
- name: checkout - name: checkout
@ -52,7 +52,7 @@ jobs:
args: ./scripts/run_tests.sh fmt drone args: ./scripts/run_tests.sh fmt drone
workflow_status: workflow_status:
runs-on: [self-hosted] runs-on: [ubuntu-latest]
name: Update Status Check name: Update Status Check
needs: [ build-statping-docker-image] needs: [ build-statping-docker-image]
if: always() if: always()

View File

@ -6,7 +6,7 @@ jobs:
Find-Jira-Id: Find-Jira-Id:
name: Find-Jira-Id name: Find-Jira-Id
runs-on: [self-hosted] runs-on: [ubuntu-latest]
steps: steps:
- name: Checkout - name: Checkout

View File

@ -3,7 +3,7 @@ on: [pull_request, push]
jobs: jobs:
semgrep: semgrep:
name: Scan name: Scan
runs-on: [self-hosted] runs-on: [ubuntu-latest]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: returntocorp/semgrep-action@v1 - uses: returntocorp/semgrep-action@v1