Skip to content

Commit

Permalink
God dammit
Browse files Browse the repository at this point in the history
  • Loading branch information
UnstoppableMango committed Jul 27, 2024
1 parent 2b44699 commit 4f60128
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ jobs:
- name: Make
run: make provisioner

- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: provisioner
path: bin/provisioner

provider:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -74,12 +80,28 @@ jobs:
- name: Make
run: make provider

- name: Make provisioner
run: make provisioner
test:
runs-on: ubuntu-latest
needs: [provisioner, provider]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: provider/go.mod
cache-dependency-path: provider/go.sum

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Download provisioner
uses: actions/download-artifact@v4
with:
name: provisioner
path: bin

- name: Build and push
uses: docker/build-push-action@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ install_nodejs_sdk::

# ------- Real Targets -------
bin/provisioner::
cd provider && go build -o $@ $(PROJECT)/${PROVIDER_PATH}/cmd/provisioner
cd provider && go build -o ${WORKING_DIR}/$@ $(PROJECT)/${PROVIDER_PATH}/cmd/provisioner

0 comments on commit 4f60128

Please sign in to comment.