Compare commits

...
+2 -18
View File
@@ -17,18 +17,6 @@ jobs:
echo "::set-output name=postgres::${TAG:0:4}"
echo "::set-output name=walg::${TAG:5:6}"
- name: Setup deployment key
env:
KEY: ${{ secrets.SSH_KEY }}
run: |
apt-get install -y openssh-client
mkdir "$HOME/.ssh"
chmod 700 "$HOME/.ssh"
echo "$KEY" > "$HOME/.ssh/id_rsa"
chmod 600 "$HOME/.ssh/id_rsa"
echo "k3s-sd-03.koehn.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxtIAg5NYQJ3QLvGSDAYglixflcxOBlLyEOwwKh45Pw" > "$HOME/.ssh/known_hosts"
ssh -l root -- k3s-sd-03.koehn.com docker version
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
@@ -37,10 +25,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
append: |
- name: k3s-sd-03
endpoint: ssh://root@k3s-sd-03.koehn.com
- name: Login to Docker Hub
uses: docker/login-action@v3
@@ -51,11 +35,11 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
needs: versions
needs: [versions, ssh]
with:
build-args: |
BASE=${{ steps.versions.outputs.postgres }}
WAL_G=${{ steps.versions.outputs.walg }}
push: true
platforms: linux/amd64,linux/arm64
tags: git.koehn.com/docker/postgres-wal-g:${{ steps.versions.outputs.postgres }}-${{ steps.versions.outputs.walg }}
tags: git.koehn.com/docker/postgres-wal-g:${{ gitea.ref_name }}