fix(build): removing sudo + checking what user the runner is
Some checks failed
/ desec-script (push) Failing after 27s
Some checks failed
/ desec-script (push) Failing after 27s
This commit is contained in:
parent
4fb99509dd
commit
96b58b7aa9
1 changed files with 9 additions and 8 deletions
|
|
@ -10,13 +10,14 @@ jobs:
|
|||
|
||||
- run: |
|
||||
cd server-scripts/desec-ip-sync/
|
||||
sudo apt update
|
||||
sudo apt install ca-certificates curl
|
||||
sudo install -m 0755 -d /etc/apt/keyrings
|
||||
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||
whoami
|
||||
apt update
|
||||
apt install ca-certificates curl
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
||||
chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
|
||||
tee /etc/apt/sources.list.d/docker.sources <<EOF
|
||||
Types: deb
|
||||
URIs: https://download.docker.com/linux/debian
|
||||
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
|
||||
|
|
@ -24,8 +25,8 @@ jobs:
|
|||
Signed-By: /etc/apt/keyrings/docker.asc
|
||||
EOF
|
||||
|
||||
sudo apt update
|
||||
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
|
||||
apt update
|
||||
apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
|
||||
|
||||
- name: Login to Forgejo Container Registry
|
||||
uses: docker/login-action@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue