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

34 lines
1.1 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
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
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