-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.04 KB
/
docker-image.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
34
35
36
37
38
name: Docker Image CI
on:
push:
branches: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker Login
uses: docker/[email protected]
with:
username: photopills
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & Push Alpine Runner
run: |
docker build -f Dockerfile -t photopills/runner:alpine .
docker tag photopills/runner:alpine photopills/runner:latest
docker push photopills/runner:alpine
docker push photopills/runner:latest
# Debug image
docker build -f Dockerfile.debug -t photopills/runner:debug .
docker push photopills/runner:debug
- name: Build & Push Python Runner
run: |
docker build -f Dockerfile.python -t photopills/runner:python .
docker push photopills/runner:python
- name: Build & Push ArgoCD Runner
run: |
docker build -f Dockerfile.argocd -t photopills/runner:argocd .
docker push photopills/runner:argocd