Skip to content

Commit cdb38cf

Browse files
committed
Use an empty file instead of path
1 parent 4826d28 commit cdb38cf

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

.github/workflows/pull_request.yaml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
with:
1818
go-version: '^1.16'
1919

20-
- name: Lint
21-
uses: golangci/golangci-lint-action@v2
22-
with:
23-
version: v1.32.2
24-
args: --timeout=5m
20+
# - name: Lint
21+
# uses: golangci/golangci-lint-action@v2
22+
# with:
23+
# version: v1.32.2
24+
# args: --timeout=5m
2525

2626
- name: Ensure etcd
2727
id: Ensure-etcd
@@ -55,26 +55,26 @@ jobs:
5555
- name: Run tests
5656
run: make test
5757

58-
- name: Figure out if running fork PR
59-
id: fork
60-
run: '["${{ secrets.DOCKER_REGISTRY_TOKEN }}" == ""] && echo "::set-output name=is_fork_pr::true" || echo "::set-output name=is_fork_pr::false"'
58+
# - name: Figure out if running fork PR
59+
# id: fork
60+
# run: '["${{ secrets.DOCKER_REGISTRY_TOKEN }}" == ""] && echo "::set-output name=is_fork_pr::true" || echo "::set-output name=is_fork_pr::false"'
6161

62-
- name: Docker Login
63-
uses: docker/login-action@v1
64-
with:
65-
registry: ${{ secrets.DOCKER_REGISTRY }}
66-
username: ${{ secrets.DOCKER_REGISTRY_USER }}
67-
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
68-
if: steps.fork.outputs.is_fork_pr == 'false'
62+
# - name: Docker Login
63+
# uses: docker/login-action@v1
64+
# with:
65+
# registry: ${{ secrets.DOCKER_REGISTRY }}
66+
# username: ${{ secrets.DOCKER_REGISTRY_USER }}
67+
# password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
68+
# if: steps.fork.outputs.is_fork_pr == 'false'
6969

70-
- name: Build Docker image
71-
run: |
72-
export DOCKER_TAG=pr-${GITHUB_HEAD_REF}
73-
make docker-build
70+
# - name: Build Docker image
71+
# run: |
72+
# export DOCKER_TAG=pr-${GITHUB_HEAD_REF}
73+
# make docker-build
7474

75-
- name: Push Docker image
76-
run: |
77-
# pull request images are prefixed with 'pr' to prevent them from overriding released images
78-
export DOCKER_TAG=pr-${GITHUB_HEAD_REF}
79-
make docker-push
80-
if: steps.fork.outputs.is_fork_pr == 'false'
75+
# - name: Push Docker image
76+
# run: |
77+
# # pull request images are prefixed with 'pr' to prevent them from overriding released images
78+
# export DOCKER_TAG=pr-${GITHUB_HEAD_REF}
79+
# make docker-push
80+
# if: steps.fork.outputs.is_fork_pr == 'false'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ ifeq (,$(wildcard ~/.kubebuilder/${KUBEBUILDER_VERSION}))
192192
arch=$$(go env GOARCH) ;\
193193
curl -L https://go.kubebuilder.io/dl/${KUBEBUILDER_VERSION}/$${os}/$${arch} | tar -xz -C /tmp/ ;\
194194
mv /tmp/kubebuilder_${KUBEBUILDER_VERSION}_$${os}_$${arch}/bin/* ${GOBIN} ;\
195-
mkdir -p ~/.kubebuilder/${KUBEBUILDER_VERSION} ;\
195+
mkdir ~/.kubebuilder && touch ~/.kubebuilder/${KUBEBUILDER_VERSION} ;\
196196
}
197197
endif
198198

0 commit comments

Comments
 (0)