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: jobs:
build: build:
runs-on: ubuntu-latest runs-on: host
steps: steps:
- name: Set up Docker environment # - name: Set up Docker environment
run: | # run: |
apt update && apt upgrade -y && apt install -y apt-transport-https ca-certificates curl zstd gnupg lsb-release # 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 # curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \ # echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ # "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 # $(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 # apt update && apt install -y docker-ce docker-ce-cli containerd.io
- name: Checkout branch - name: Checkout branch
uses: https://github.com/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 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-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 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 - name: Deploy update
uses: https://github.com/appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3 uses: https://github.com/appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
with: with: