File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Build deployment container
3+ on :
4+ push :
5+ branches :
6+ - prod
7+ - staging
8+ workflow_dispatch :
9+ jobs :
10+ docker :
11+ runs-on : ubuntu-22.04
12+ name : Docker Push
13+ steps :
14+ - uses : actions/checkout@v3
15+ - name : Docker build
16+ run : docker build . -t metacpan/metacpan-explorer:$GITHUB_SHA
17+ - name : Log in to Docker Hub
18+ uses : docker/login-action@v2
19+ with :
20+ username : ${{ secrets.DOCKER_HUB_USER }}
21+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
22+ - name : Push build to Docker hub
23+ run : docker push metacpan/metacpan-explorer:$GITHUB_SHA
Original file line number Diff line number Diff line change 1+ ---
2+ name : Build production container
3+ on :
4+ push :
5+ branches :
6+ - master
7+ workflow_dispatch :
8+ jobs :
9+ docker :
10+ runs-on : ubuntu-22.04
11+ name : Docker Push
12+ steps :
13+ - uses : actions/checkout@v3
14+ - name : docker build
15+ run : docker build . -t metacpan/metacpan-explorer:latest
16+ - name : Log in to Docker Hub
17+ uses : docker/login-action@v2
18+ with :
19+ username : ${{ secrets.DOCKER_HUB_USER }}
20+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
21+ - name : Push build to Docker Hub
22+ run : docker push metacpan/metacpan-explorer:latest
You can’t perform that action at this time.
0 commit comments