Skip to content

Commit

Permalink
Merge pull request #13 from gravitational/fred/build-on-pr-1
Browse files Browse the repository at this point in the history
Enabled build on PR push
  • Loading branch information
fheinecke authored Mar 7, 2024
2 parents 56df9bb + 8b75a72 commit c3f479b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
env:
GIT_TAG: ${{ github.ref_name }}
GH_TOKEN: ${{ github.token }}
run: earthly -ci --push --secret GH_TOKEN +release --GIT_TAG="$GIT_TAG"
run: earthly --ci --push --secret GH_TOKEN +release --GIT_TAG="$GIT_TAG"
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
# renovate: earthly-version
version: v0.8.4
- name: Lint Go code
run: earthly -ci +lint --OUTPUT_FORMAT=github-actions
run: earthly --ci +lint --OUTPUT_FORMAT=github-actions
- name: Run Go tests
run: earthly -ci +test --OUTPUT_FORMAT=github-actions
run: earthly --ci +test --OUTPUT_FORMAT=github-actions
- name: Run a build
run: |
# Generate a fake git tag
GIT_TAG=$(git describe --tags --match "v[[:digit:]]*.[[:digit:]]*.[[:digit:]]" | sed 's/\(.*\)-\(.*\)-\(.*\)/\1-gen.\2+\3/')
earthly --ci --output +all --GIT_TAG="$GIT_TAG"
echo "Build outputs"
find outputs -type f -exec ls -lh "{}" \;
docker image ls gha-exporter

0 comments on commit c3f479b

Please sign in to comment.