-
Notifications
You must be signed in to change notification settings - Fork 24
33 lines (33 loc) · 1.05 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Continuous Deployment
on: [push]
jobs:
Deploy:
runs-on: ubuntu-latest
services:
docker:
image: docker
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install pip
run: |
python -m pip install --upgrade pip
- name: Deploy
env:
TRAVIS_REPO_SLUG: datopian/ckan-cloud-docker
TRAVIS_BRANCH: ${{ env.GITHUB_SHA }}
GITHUB_SHA: ${{ env.GITHUB_SHA }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
GITHUB_WORKSPACE: ${{ env.GITHUB_WORKSPACE }}
run: |
mkdir -p $GITHUB_WORKSPACE/bin/
mv travis_ci_operator.sh $GITHUB_WORKSPACE/bin/travis_ci_operator.sh
bash $GITHUB_WORKSPACE/bin/travis_ci_operator.sh init $GITHUB_WORKSPACE
bash .travis.sh install
bash .travis.sh script
bash .travis.sh deploy $GITHUB_SHA