Skip to content

Commit 6ea07e7

Browse files
authored
Merge pull request #67 from BaseballCardTracker/29-dependencies-in-dockerfile
Remove unnecessary step
2 parents 959d135 + add0b1c commit 6ea07e7

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- '*'
1212

1313
jobs:
14-
build:
14+
api:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
@@ -38,3 +38,30 @@ jobs:
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 }}

0 commit comments

Comments
 (0)