This commit is contained in:
Orion Kindel 2023-06-27 14:03:55 -05:00
commit e46109e18f
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719
2 changed files with 24 additions and 0 deletions

20
.gitea/workflows/demo.yml Normal file
View File

@ -0,0 +1,20 @@
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'

4
docker-compose.yml Normal file
View File

@ -0,0 +1,4 @@
services:
foo:
image: "ubuntu:latest"
entrypoint: "echo foo"