tibi-docs/.gitea/workflows/deploy.yaml

36 lines
1.3 KiB
YAML
Raw Normal View History

2023-03-21 15:06:09 +01:00
name: deploy to production
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
2023-03-23 15:14:37 +01:00
# container:
# image: alpine:edge
# volumes:
# - /data:/data
2023-03-21 15:06:09 +01:00
steps:
2023-03-21 15:44:06 +01:00
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - run: git fetch --force --tags
2023-03-23 15:28:12 +01:00
- name: install docker
run: |
apt-get update
2023-03-23 15:58:10 +01:00
apt-get install -y ca-certificates curl gnupg lsb-release
mkdir -m 0755 -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
chmod a+r /etc/apt/keyrings/docker.gpg
2023-03-23 15:28:12 +01:00
apt-get update
2023-03-23 15:58:10 +01:00
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
2023-03-21 15:25:35 +01:00
- run: hostname
- run: pwd
2023-03-21 15:06:09 +01:00
- run: ls -la
2023-03-23 15:14:37 +01:00
# - run: apk add --no-cache docker
2023-03-21 15:42:10 +01:00
- run: docker ps
2023-03-23 15:14:37 +01:00
# - run: ls -la /data