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