Skip to content

Commit

Permalink
more actions refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lrvick committed Feb 28, 2024
1 parent ab65e8f commit 2a5f0e1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 31 deletions.
30 changes: 0 additions & 30 deletions .github/actions/docker-setup/action.yml

This file was deleted.

27 changes: 26 additions & 1 deletion .github/workflows/stage.yml → .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,32 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup and configure docker
uses: ./.github/actions/docker-setup
shell: 'script -q -e -c "bash {0}"'
run: |
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; \
do apt-get remove $pkg; \
done
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] 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
cat << EOF >/etc/docker/daemon.json
{
"features": {
"containerd-snapshotter": true
},
"registry-mirrors": ["https://ghcr.io/tkhq"]
}
EOF
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl restart docker
docker buildx create --driver docker-container --bootstrap --name build --use
- name: Run `make`
shell: 'script -q -e -c "bash {0}"'
Expand Down

0 comments on commit 2a5f0e1

Please sign in to comment.