Curious if this works
Some checks are pending
Build and push container image / build (push) Waiting to run
Build and push container image / deploy (push) Blocked by required conditions

This commit is contained in:
toast 2024-08-15 12:28:23 +10:00
parent 9ec676fb8d
commit 70bb546c77

View File

@ -7,16 +7,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: host
steps:
- name: Set up Docker environment
run: |
apt update && apt upgrade -y && apt install -y apt-transport-https ca-certificates curl zstd gnupg lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update && apt install -y docker-ce docker-ce-cli containerd.io
# - name: Set up Docker environment
# run: |
# apt update && apt upgrade -y && apt install -y apt-transport-https ca-certificates curl zstd gnupg lsb-release
# curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# echo \
# "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
# $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# apt update && apt install -y docker-ce docker-ce-cli containerd.io
- name: Checkout branch
uses: https://github.com/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
@ -42,6 +42,10 @@ jobs:
cache-from: type=registry,ref=git.toast-server.net/toast/kon:_cache_
cache-to: type=registry,ref=git.toast-server.net/toast/kon:_cache_,mode=max
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy update
uses: https://github.com/appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
with: