Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
62dc582
added scache:
AtlasPilotPuppy Sep 24, 2022
1cac77e
added scache:
AtlasPilotPuppy Sep 24, 2022
34094a3
added scache:
AtlasPilotPuppy Sep 24, 2022
8ea0b44
added scache:
AtlasPilotPuppy Sep 24, 2022
e76ad6f
added scache:
AtlasPilotPuppy Sep 24, 2022
942cf48
added scache:
AtlasPilotPuppy Sep 24, 2022
ba04f4e
Added terraform step
AtlasPilotPuppy Sep 27, 2022
2471cb3
Added terraform step
AtlasPilotPuppy Sep 27, 2022
0a93ff3
added terraform for kube
AtlasPilotPuppy Oct 5, 2022
c67691e
added terraform for kube
AtlasPilotPuppy Oct 5, 2022
d235a12
added terraform for kube
AtlasPilotPuppy Oct 5, 2022
9c22beb
added terraform for kube
AtlasPilotPuppy Oct 5, 2022
036f90b
added terraform for kube
AtlasPilotPuppy Oct 5, 2022
f626811
added terraform
AtlasPilotPuppy Oct 5, 2022
1fed707
formatted terraform file
AtlasPilotPuppy Oct 5, 2022
2eea7b6
Added quotes
AtlasPilotPuppy Oct 5, 2022
085b8f5
Added quotes
AtlasPilotPuppy Oct 5, 2022
b99e179
Added quotes
AtlasPilotPuppy Oct 5, 2022
fa7d234
Added quotes
AtlasPilotPuppy Oct 5, 2022
e6dd2f9
Added quotes
AtlasPilotPuppy Oct 5, 2022
5eac580
Added quotes
AtlasPilotPuppy Oct 5, 2022
253c9d4
Added quotes
AtlasPilotPuppy Oct 5, 2022
5c83e81
Added quotes
AtlasPilotPuppy Oct 5, 2022
aab75be
Added quotes
AtlasPilotPuppy Oct 5, 2022
14313ce
Added quotes
AtlasPilotPuppy Oct 5, 2022
bbf5de7
Added quotes
AtlasPilotPuppy Oct 5, 2022
aeab4d9
Added quotes
AtlasPilotPuppy Oct 5, 2022
2a185ae
Cleaned up tf file
AtlasPilotPuppy Oct 5, 2022
69c1f7e
Cleaned up tf file
AtlasPilotPuppy Oct 5, 2022
f043c62
Cleaned up tf file
AtlasPilotPuppy Oct 5, 2022
b8e63fa
Cleaned up tf file
AtlasPilotPuppy Oct 5, 2022
64afb3f
Cleaned up tf file
AtlasPilotPuppy Oct 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 44 additions & 21 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Using sccache guidance from
# https://www.infinyon.com/blog/2021/04/github-actions-best-practices/

name: Ci-test-and-build
on:
push:
Expand Down Expand Up @@ -26,25 +29,21 @@ jobs:
cancel-in-progress: true
steps:
- name: Install sccache (ubuntu-latest)
env:
LINK: https://github.com/mozilla/sccache/releases/download
SCCACHE_VERSION: 0.3.0
run: |
SCCACHE_FILE=sccache-dist-v0.3.0-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
curl -L "https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-dist-v0.3.0-x86_64-unknown-linux-musl.tar.gz" | tar xz
mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache
wget https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz && tar -xvf sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz
mv -f sccache-v0.3.0-x86_64-unknown-linux-musl/sccache $HOME/.local/bin/sccache && chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Save sccache
uses: actions/cache@v3
continue-on-error: false
with:
path: ${{ matrix.sccache-path }}
path: /home/runner/.cache/sccache
key: ${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sccache-
- name: Start sccache server
run: sccache --start-server
run: $HOME/.local/bin/sccache --start-server
- uses: actions/cache@v3
with:
path: |
Expand Down Expand Up @@ -114,19 +113,19 @@ jobs:
run: |
SCCACHE_FILE=sccache-dist-v0.3.0-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
curl -L "https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-dist-v0.3.0-x86_64-unknown-linux-musl.tar.gz" | tar xz
mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache
wget https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz && tar -xvf sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz
mv -f sccache-v0.3.0-x86_64-unknown-linux-musl/sccache $HOME/.local/bin/sccache && chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Save sccache
uses: actions/cache@v3
continue-on-error: false
with:
path: ${{ matrix.sccache-path }}
path: /home/runner/.cache/sccache
key: ${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sccache-
- name: Start sccache server
run: sccache --start-server
run: $HOME/.local/bin/sccache --start-server
- uses: actions/cache@v3
with:
path: |
Expand Down Expand Up @@ -195,19 +194,19 @@ jobs:
run: |
SCCACHE_FILE=sccache-dist-v0.3.0-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
curl -L "https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-dist-v0.3.0-x86_64-unknown-linux-musl.tar.gz" | tar xz
mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache
wget https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz && tar -xvf sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz
mv -f sccache-v0.3.0-x86_64-unknown-linux-musl/sccache $HOME/.local/bin/sccache && chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Save sccache
uses: actions/cache@v3
continue-on-error: false
with:
path: ${{ matrix.sccache-path }}
path: /home/runner/.cache/sccache
key: ${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sccache-
- name: Start sccache server
run: sccache --start-server
run: $HOME/.local/bin/sccache --start-server
- uses: actions/cache@v3
with:
path: |
Expand Down Expand Up @@ -313,22 +312,22 @@ jobs:
run: |
SCCACHE_FILE=sccache-dist-v0.3.0-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
curl -L "https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-dist-v0.3.0-x86_64-unknown-linux-musl.tar.gz" | tar xz
wget https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-dist-v0.3.0-x86_64-unknown-linux-musl.tar.gz && tar -xvf $SCACHE_FILE
wget https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz && tar -xvf sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz
mv -f sccache-v0.3.0-x86_64-unknown-linux-musl/sccache $HOME/.local/bin/sccache && chmod +x $HOME/.local/bin/sccache
echo "DIR LISTx"
ls -alh
mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache
mv -f $SCCACHE_FILE/sccache-dist $HOME/.local/bin/sccache && chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Save sccache
uses: actions/cache@v3
continue-on-error: false
with:
path: ${{ matrix.sccache-path }}
path: /home/runner/.cache/sccache
key: ${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sccache-
- name: Start sccache server
run: sccache --start-server
run: $HOME/.local/bin/sccache --start-server
- uses: actions/cache@v3
with:
path: |
Expand Down Expand Up @@ -515,3 +514,27 @@ jobs:
username: ${{ secrets.SSH_USER}}
key: ${{ secrets.SSH_PRIV }}
script: ls ~/conf && cp /root/conf/rococo-local-cfde.json ~/ && supervisorctl reload

terraform:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref || github.run_id }}-deploy
cancel-in-progress: true
needs: []
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: terraform hetzner
uses: dflook/terraform-apply@v1
with:
path: /home/runner/work/bitgreen-node/bitgreen-node/scripts/terraform
auto_approve: true
variables: |
hcloud_token = "${{ secrets.HETZNER_KEY }}"
pubkey = <<EOT
${{ secrets.KUBERNETES_PUB }}
EOT
privatekey = <<EOT
${{ secrets.KUBERNETES_PRIV }}
EOT

Loading