This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
current_branch=$(git branch --show-current) | |
tracking_branch=$(git branch -vv | grep ${current_branch} | grep -oP '\[\K[^]]*(?=\])' | cut -d':' -f1) | |
if [ -z "$tracking_branch" ]; then | |
echo "No tracking branch found for ${current_branch}" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
codename=$(lsb_release -c -s) | |
sudo wget https://nginx.org/keys/nginx_signing.key -O /etc/apt/keyrings/nginx_signing.key | |
cat <<EOF | sudo tee /etc/apt/sources.list.d/nginx.list | |
deb [signed-by=/etc/apt/keyrings/nginx_signing.key] https://nginx.org/packages/debian/ $codename nginx | |
deb-src [signed-by=/etc/apt/keyrings/nginx_signing.key] https://nginx.org/packages/debian/ $codename nginx | |
EOF | |
sudo apt-get update | |
sudo apt-get install -y nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: use vrf | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: |
- git clone and checkout branch
git clone https://github.com/higebu/vyos-build.git
cd vyos-build
git checkout sid
- Run docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package_update: true | |
package_upgrade: true | |
groups: | |
- docker | |
- lxd | |
users: | |
- default | |
- name: runner | |
gecos: GitHub-hosted runner User | |
groups: docker, lxd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
) | |
func main() { |
NewerOlder