27 lines
623 B
YAML
27 lines
623 B
YAML
name: deploy to production
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: alpine:edge
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /data:/data
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- run: git fetch --force --tags
|
|
- run: hostname
|
|
- run: pwd
|
|
- run: ls -la
|
|
- run: pkg install -y docker
|
|
- run: docker ps
|
|
- run: ls -la /data
|