34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: deploy to production
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
# container:
|
|
# image: alpine:edge
|
|
# volumes:
|
|
# - /data:/data
|
|
steps:
|
|
# - uses: actions/checkout@v3
|
|
# with:
|
|
# fetch-depth: 0
|
|
# - run: git fetch --force --tags
|
|
- 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
|
|
- run: hostname
|
|
- run: pwd
|
|
- run: ls -la
|
|
# - run: apk add --no-cache docker
|
|
- run: docker ps
|
|
# - run: ls -la /data
|