Add in exp backoff for finding MR pipelines #68
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr_build | |
on: | |
pull_request: | |
paths: | |
- '*' | |
- '*/**' | |
- '!README.md' | |
- '!.tool-versions' | |
- '!COPYING.LGPL-3' | |
- '!.gitattributes' | |
- '!.gitignore' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v1 | |
with: | |
image: tonistiigi/binfmt:latest | |
platforms: all | |
- uses: actions/checkout@v3 | |
- name: extract git sha | |
run: echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
# Reads in .tools-versions and spits out env variables | |
- uses: wistia/parse-tool-versions@v1.0 | |
- uses: earthly/actions-setup@v1 | |
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" } | |
- run: earthly +build --GIT_COMMIT=${{ env.GIT_SHA_SHORT }} --GIT_TAG=mr --GOLANG_VERSION=${{ env.GOLANG_TOOL_VERSION }} | |
release-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v1 | |
with: | |
image: tonistiigi/binfmt:latest | |
platforms: all | |
- uses: actions/checkout@v3 | |
- name: extract git sha | |
run: echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
# Reads in .tools-versions and spits out env variables | |
- uses: wistia/parse-tool-versions@v1.0 | |
- uses: earthly/actions-setup@v1 | |
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" } | |
# intentionally avoiding --push, this is just | |
# to test the command | |
- run: earthly +release --GIT_COMMIT=${{ env.GIT_SHA_SHORT }} --GIT_TAG=mr --GOLANG_VERSION=${{ env.GOLANG_TOOL_VERSION }} |