File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 1111 - ' *'
1212
1313jobs :
14- build :
14+ api :
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout
3838 push : ${{ github.event_name != 'pull_request' }}
3939 tags : ${{ steps.meta.outputs.tags }}
4040 labels : ${{ steps.meta.outputs.labels }}
41+ nginx :
42+ runs-on : ubuntu-latest
43+ steps :
44+ - name : Checkout
45+ uses : actions/checkout@v2
46+ - name : Docker metadata
47+ id : meta
48+ uses : docker/metadata-action@v3
49+ with :
50+ images : codeguru42/bbct-nginx
51+ tags : |
52+ type=semver,pattern={{version}}
53+ type=semver,pattern={{major}}.{{minor}}
54+ type=sha
55+ - name : Login to DockerHub
56+ if : github.event_name != 'pull_request'
57+ uses : docker/login-action@v1
58+ with :
59+ username : ${{ secrets.DOCKERHUB_USERNAME }}
60+ password : ${{ secrets.DOCKERHUB_TOKEN }}
61+ - name : Build and push
62+ uses : docker/build-push-action@v2
63+ with :
64+ context : ./nginx
65+ push : ${{ github.event_name != 'pull_request' }}
66+ tags : ${{ steps.meta.outputs.tags }}
67+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments