Skip to content

Commit

Permalink
fix(ci): run release only on push
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasfrahm committed Apr 9, 2022
1 parent 74885f1 commit b255b70
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

release:
name: Release
if: github.ref_protected == true
if: github.ref_protected == true && github.event_name == 'push'
needs: [build]
runs-on: ubuntu-latest
steps:
Expand Down
44 changes: 44 additions & 0 deletions examples/standalone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Version may either be a specific k3s version or a release channel
# as listed here: https://update.k3s.io/v1-release/channels
version: stable

# Cluster provides cluster-wide settings that should be applied
# to all nodes in the cluster. All options are equivalent to the
# commmand line options of the `k3s` command.
cluster:
tls-san:
- kubeapi.example.com
disable:
- traefik
write-kubeconfig-mode: "0644"

# A list of all nodes in the cluster and their connection information.
nodes:
- role: server
ssh:
host: 192.168.254.254
port: 22
fingerprint: SHA256:TQJ6O204vLkziGitTEXYzEcF92hkosWPBhHaNaICjTM
user: root
ssh-key: ~/.ssh/id_rsa
node-label:
- hardware=dfrobot-rtcm4

- role: agent
ssh:
host: 192.168.254.1
port: 22
fingerprint: SHA256:mjQz8GI7bweqTbcSSNQPEcXtXtP0mN4nQ9H5BSAzM18
user: root
ssh-key: ~/.ssh/id_rsa
node-label:
- hardware=medion-e1230

# An SSH proxy, also known as jumpbox or a bastion host
# can be used to access nodes in a private network.
ssh-proxy:
host: example.com
port: 22
fingerprint: SHA256:TQJ6O204vLkziGitTEXYzEcF92hkosWPBhHaNaICjTM
user: root
ssh-key: ~/.ssh/id_rsa

0 comments on commit b255b70

Please sign in to comment.