-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 1.02 KB
/
python-publish.yml
File metadata and controls
32 lines (29 loc) · 1.02 KB
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
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Deploy To IBM CF
on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and publish
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: shra012/example-flask
tags: latest
- name: Deploy to IBM CF
uses: citizen-of-planet-earth/cf-cli-action@v1
with:
cf_api: https://api.eu-gb.cf.cloud.ibm.com
cf_username: ${{ secrets.CF_USER }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: ${{ secrets.CF_USER }}
cf_space: dev
command: push -f deploy/cf/manifest.yml