forked from linuxacademy/content-gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 838 Bytes
/
Copy pathpythonapp.yml
File metadata and controls
35 lines (29 loc) · 838 Bytes
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
34
35
name: Python application
on:
pull_request:
paths:
- 'python/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./python/requirements.txt
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: jupitersmoons
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: Build & Push Image
run: |
cd ./python
# docker login -u jupitersmoons --password=${secrets.DOCKERPW}
docker image build -t jupitersmoons/gitops:hellov1.0 .
docker push jupitersmoons/gitops:hellov1.0