Skip to content

Commit

Permalink
webhook wasn't executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpromislow committed May 24, 2024
1 parent 1423d08 commit 9d14611
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,28 +137,29 @@ jobs:
K3S_VERSION: v1.28.9-k3s1
ARCH: "linux/amd64" # TODO: set this to strategy.matrix.platform or something like that

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

- name: Build image
uses: docker/build-push-action@v5.1.0
with:
context: .
tags: rancher/webhook:${{ github.sha }}
load: true
push: false
file: package/Dockerfile
build-args: |
TAG=${{ github.sha }}
REPO=rancher/webhook
COMMIT=${{ github.sha }}
#### - name: Set up Docker Buildx
#### uses: docker/setup-buildx-action@v3
####
#### - name: Build image
#### uses: docker/build-push-action@v5.1.0
#### with:
#### context: .
#### tags: rancher/webhook:${{ github.sha }}
#### load: true
#### push: false
#### file: package/Dockerfile
#### build-args: |
#### TAG=${{ github.sha }}
#### REPO=rancher/webhook
#### COMMIT=${{ github.sha }}

# Build the image this way because using the docker/build-push-action
# results in an

- name : import image
run : |
docker build --tag "rancher/webhook:${{ github.sha }}" -f package/Dockerfile .
chmod +x bin/webhook
docker build --tag "rancher/webhook:${{ github.sha }}" -f package/Dockerfile .
k3d image import "rancher/webhook:${{ github.sha }}" -c webhook

- name : start rancher
Expand Down

0 comments on commit 9d14611

Please sign in to comment.