mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2026-11-27 09:43:20 -06:00
Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
599b4a7394 | ||
|
|
181d81d8b6 | ||
|
|
fe1d076b54 | ||
|
|
d644e427bf | ||
|
|
2843231ba3 | ||
|
|
d38cf5c191 | ||
|
|
aab6a0cbc3 | ||
|
|
3f5f137aac | ||
|
|
f1b9fe6c8f | ||
|
|
63777d0241 | ||
|
|
ffe01b37ae | ||
|
|
6ccf13f61e | ||
|
|
06627b7c94 | ||
|
|
47a9a80143 |
@@ -16,6 +16,23 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "::set-output name=postgres::${TAG:0:4}"
|
echo "::set-output name=postgres::${TAG:0:4}"
|
||||||
echo "::set-output name=walg::${TAG:5:6}"
|
echo "::set-output name=walg::${TAG:5:6}"
|
||||||
|
|
||||||
|
- name: Setup deployment key
|
||||||
|
id: ssh
|
||||||
|
env:
|
||||||
|
KEY: ${{ secrets.SSH_KEY }}
|
||||||
|
KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }}
|
||||||
|
run: |
|
||||||
|
mkdir "$HOME/.ssh"
|
||||||
|
chmod 700 "$HOME/.ssh"
|
||||||
|
echo "$KEY" > "$HOME/.ssh/id_rsa"
|
||||||
|
chmod 600 "$HOME/.ssh/id_rsa"
|
||||||
|
eval "$(ssh-agent -s)"
|
||||||
|
ssh-add "$HOME/.ssh/id_rsa"
|
||||||
|
echo "::set-output name=ssd-path::$HOME/.ssh"
|
||||||
|
echo "::set-output name=ssh-agent-pid::$SSH_AGENT_PID"
|
||||||
|
echo "::set-output name=ssh-auth-sock::$SSH_AUTH_SOCK"
|
||||||
|
ssh -o StrictHostKeyChecking=no -l root -- k3s-sd-03.koehn.com docker version
|
||||||
|
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
run: curl -fsSL https://get.docker.com | sh
|
run: curl -fsSL https://get.docker.com | sh
|
||||||
@@ -27,8 +44,7 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
append: |
|
append: |
|
||||||
- name: k3s-sd-03
|
- endpoint: ssh://root@k3s-sd-03.koehn.com
|
||||||
endpoint: ssh://root@k3s-sd-03.koehn.com
|
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -39,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
needs: versions
|
needs: [versions, ssh]
|
||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
BASE=${{ steps.versions.outputs.postgres }}
|
BASE=${{ steps.versions.outputs.postgres }}
|
||||||
|
|||||||
Reference in new issue
Block a user