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

36 lines
765 B
YAML
Raw Normal View History

2023-03-21 15:06:09 +01:00
name: deploy to production
on:
push:
branches:
- master
jobs:
deploy:
2023-03-23 16:57:26 +01:00
name: deploy
2023-03-21 15:06:09 +01:00
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-23 16:44:40 +01:00
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
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-21 15:42:10 +01:00
- run: docker ps
2023-03-23 16:44:40 +01:00
- run: ls -la /data
data:
needs: deploy
runs-on: ubuntu-latest
2023-03-23 16:55:09 +01:00
# container:
# image: alpine:edge
# volumes:
# - /data:/data
2023-03-23 16:44:40 +01:00
steps:
2023-03-23 16:55:09 +01:00
- run: ls -la