You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.0 KiB

build(deps): Bump actions/checkout from 2.3.5 to 2.4.0 (#7199) Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v2.4.0</h2> <ul> <li>Convert SSH URLs like <code>org-&lt;ORG_ID&gt;@github.com:</code> to <code>https://github.com/</code> - <a href="https://github-redirect.dependabot.com/actions/checkout/pull/621">pr</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/ec3a7ce113134d7a93b817d10a8272cb61118579"><code>ec3a7ce</code></a> set insteadOf url for org-id (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/621">#621</a>)</li> <li><a href="https://github.com/actions/checkout/commit/fd47087372161c6f2a7b96d2ef87e944d89023ed"><code>fd47087</code></a> codeql should analyze lib not dist (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/620">#620</a>)</li> <li><a href="https://github.com/actions/checkout/commit/3d677ac575eac4b370e52131024fa99ee754def1"><code>3d677ac</code></a> script to generate license info (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/614">#614</a>)</li> <li><a href="https://github.com/actions/checkout/commit/826ba42d6c06e4d78b1b33478af7b54277e60b52"><code>826ba42</code></a> npm audit fix (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/612">#612</a>)</li> <li><a href="https://github.com/actions/checkout/commit/eb8a193c1dbf4bbb2053320cef52bacc1a485839"><code>eb8a193</code></a> update dev dependencies and react to new linting rules (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/611">#611</a>)</li> <li><a href="https://github.com/actions/checkout/commit/c49af7ca1f339b07a5baac8c8bfc49a5248f31d3"><code>c49af7c</code></a> Create codeql-analysis.yml (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/602">#602</a>)</li> <li>See full diff in <a href="https://github.com/actions/checkout/compare/v2.3.5...v2.4.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/checkout&package-manager=github_actions&previous-version=2.3.5&new-version=2.4.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
3 years ago
  1. name: Build & Push
  2. # Build & Push rebuilds the tendermint docker image on every push to master and creation of tags
  3. # and pushes the image to https://hub.docker.com/r/interchainio/simapp/tags
  4. on:
  5. pull_request:
  6. push:
  7. branches:
  8. - master
  9. tags:
  10. - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
  11. - "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
  12. jobs:
  13. build:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v2.4.0
  17. - name: Prepare
  18. id: prep
  19. run: |
  20. DOCKER_IMAGE=tendermint/tendermint
  21. VERSION=noop
  22. if [[ $GITHUB_REF == refs/tags/* ]]; then
  23. VERSION=${GITHUB_REF#refs/tags/}
  24. elif [[ $GITHUB_REF == refs/heads/* ]]; then
  25. VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
  26. if [ "${{ github.event.repository.default_branch }}" = "$VERSION" ]; then
  27. VERSION=latest
  28. fi
  29. fi
  30. TAGS="${DOCKER_IMAGE}:${VERSION}"
  31. if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
  32. TAGS="$TAGS,${DOCKER_IMAGE}:${VERSION}"
  33. fi
  34. echo ::set-output name=tags::${TAGS}
  35. - name: Set up QEMU
  36. uses: docker/setup-qemu-action@master
  37. with:
  38. platforms: all
  39. - name: Set up Docker Buildx
  40. uses: docker/setup-buildx-action@v1.6.0
  41. - name: Login to DockerHub
  42. if: ${{ github.event_name != 'pull_request' }}
  43. uses: docker/login-action@v1.10.0
  44. with:
  45. username: ${{ secrets.DOCKERHUB_USERNAME }}
  46. password: ${{ secrets.DOCKERHUB_TOKEN }}
  47. - name: Publish to Docker Hub
  48. uses: docker/build-push-action@v2.7.0
  49. with:
  50. context: .
  51. file: ./DOCKER/Dockerfile
  52. platforms: linux/amd64,linux/arm64
  53. push: ${{ github.event_name != 'pull_request' }}
  54. tags: ${{ steps.prep.outputs.tags }}