Skip to content

Commit

Permalink
Run CI on pushes to default branch. Also don't publish to dockerhub. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerjohn authored and evan-forbes committed May 5, 2022
1 parent 340539d commit ec9c79d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/atlas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Atlas
on:
push:
branches:
- master
- v[0-9]+.[0-9]+.x-celestia
- release/**
paths:
- "x/**/atlas/*"
pull_request:
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build & Push
# Build & Push builds the simapp docker image on every push to master and
# and pushes the image to https://hub.docker.com/r/interchainio/simapp/tags
name: Build Simapp Docker
# Builds the simapp docker image on every push to default branch.
on:
push:
branches:
- master
- v[0-9]+.[0-9]+.x-celestia
- release/**
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
Expand Down Expand Up @@ -44,15 +44,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish to Docker Hub
- name: Build but do not Publish to Docker Hub
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
pull_request:
push:
branches:
- master
- v[0-9]+.[0-9]+.x-celestia
- release/**
jobs:
golangci:
name: golangci-lint
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Sims
# Sims workflow runs multiple types of simulations (nondeterminism, import-export, after-import, multi-seed-short)
# This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed
on:
schedule:
- cron: "* */2 * * *"
release:
types: [published]
pull_request:
push:
branches:
- v[0-9]+.[0-9]+.x-celestia
- release/**

jobs:
cleanup-runs:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ on:
pull_request:
push:
branches:
- master
- v[0-9]+.[0-9]+.x-celestia
- release/**

permissions:
contents: read

jobs:
cleanup-runs:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ec9c79d

Please sign in to comment.