From e952ea01c7e0c9b2baba86671dbbcbd69a35581e Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 27 Jul 2023 22:26:01 +1000 Subject: [PATCH] docker: apt manual test 1 --- .gitea/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 35303a6..f1da3f5 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -20,9 +20,11 @@ jobs: done - name: Build Docker image run : | - cat /etc/os-release - apt -y install docker-ce docker-ce-cli containerd.io - + apt-get install ca-certificates curl gnupg + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg + echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null + apt-get update + apt-get install docker-ce-cli echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin docker build -t woodburn-website:latest . docker push git.woodburn.au/nathanwoodburn/woodburn-website:latest