Skip to content

Commit

Permalink
Merge pull request #39 from zapier/use-tool-versions
Browse files Browse the repository at this point in the history
Use tool versions
  • Loading branch information
djeebus authored Dec 13, 2022
2 parents ee98401 + 8f17cbe commit 6fc36a7
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 31 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/on_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: earthly/actions-setup@v1
with:
version: v0.6.30

- name: checkout the source code
uses: actions/checkout@v3

- uses: wistia/[email protected]

- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }

- name: run continuous deployment actions
run: earthly --push +continuous-deploy --token ${{ secrets.GITHUB_TOKEN }}
30 changes: 18 additions & 12 deletions .github/workflows/on_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,39 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: earthly/actions-setup@v1
with: { version: v0.6.30 }

- uses: actions/checkout@v3

- run: earthly +build
- uses: wistia/[email protected]

- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }

- run: earthly +build --GOLANG_VERSION=${{ env.GOLANG_TOOL_VERSION }}

release-test:
runs-on: ubuntu-22.04
steps:
- uses: earthly/actions-setup@v1
with: { version: v0.6.30 }

- uses: actions/checkout@v3

- uses: wistia/[email protected]

- 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
- run: earthly +release --GOLANG_VERSION=${{ env.GOLANG_TOOL_VERSION }}

skaffold:
runs-on: ubuntu-22.04
steps:
- uses: earthly/actions-setup@v1
with: { version: v0.6.30 }

- uses: actions/checkout@v3

- uses: wistia/[email protected]

- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }

- name: start minikube
uses: hiberbee/[email protected]

Expand All @@ -51,5 +57,5 @@ jobs:
- name: run skaffold
uses: hiberbee/[email protected]
with:
skaffold-version: 2.0.3
skaffold-version: "${{ env.SKAFFOLD_TOOL_VERSION }}"
command: run
13 changes: 7 additions & 6 deletions .github/workflows/on_pull_request_go.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: go ci
on:
on:
pull_request:
paths:
- '.github/workflows/on_pull_request_go.yaml'
Expand All @@ -13,10 +13,11 @@ jobs:
ci-golang:
runs-on: ubuntu-22.04
steps:
- uses: earthly/actions-setup@v1
with:
version: v0.6.30

- uses: actions/checkout@v3

- run: earthly +ci-golang
- uses: wistia/[email protected]

- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }

- run: earthly +ci-golang --GOLANG_VERSION=${{ env.GOLANG_TOOL_VERSION }}
11 changes: 6 additions & 5 deletions .github/workflows/on_pull_request_helm.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: helm ci
on:
on:
pull_request:
paths:
- '.github/workflows/on_pull_request_helm.yaml'
Expand All @@ -10,10 +10,11 @@ jobs:
ci-helm:
runs-on: ubuntu-22.04
steps:
- uses: earthly/actions-setup@v1
with:
version: v0.6.30

- uses: actions/checkout@v3

- uses: wistia/[email protected]

- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }

- run: earthly +ci-helm
9 changes: 5 additions & 4 deletions .github/workflows/on_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: earthly/actions-setup@v1
with:
version: v0.6.30

- name: checkout the source code
uses: actions/checkout@v3

- uses: wistia/[email protected]

- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }

- name: Extract tag name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

Expand Down

0 comments on commit 6fc36a7

Please sign in to comment.