act-runner-dind-demo/.gitea/workflows/demo.yml
Orion Kindel e46109e18f
init
2023-06-27 14:03:55 -05:00

21 lines
881 B
YAML

name: 'demo'
on: {push: {branches: ['main']}}
jobs:
demo-docker-compose-run:
steps:
- uses: 'actions/checkout@v3'
- name: 'install docker-ce-cli'
run: |
apt-get update
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce-cli docker-compose-plugin
- run: 'docker compose up'