init
This commit is contained in:
commit
e46109e18f
20
.gitea/workflows/demo.yml
Normal file
20
.gitea/workflows/demo.yml
Normal 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
4
docker-compose.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
services:
|
||||||
|
foo:
|
||||||
|
image: "ubuntu:latest"
|
||||||
|
entrypoint: "echo foo"
|
Loading…
Reference in New Issue
Block a user