Skip to content

Commit bd81b2d

Browse files
committed
Updated dev branch to run on any non master branch
1 parent d84be53 commit bd81b2d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/docker-dev.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,26 @@ name: Docker Image Dev - Latest
22

33
on:
44
push:
5-
branches: ["!master"]
65
pull_request:
7-
branches: ["!master"]
86

97
jobs:
108
build:
9+
if: github.ref != 'refs/heads/master'
1110
runs-on: ubuntu-latest
1211

1312
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
1416
- name: Login to DockerHub
1517
uses: docker/login-action@v4
1618
with:
1719
username: ${{ secrets.DOCKERHUB_USERNAME }}
1820
password: ${{ secrets.DOCKERHUB_TOKEN }}
1921

20-
- name: Build and push
22+
- name: Build and push Docker image
2123
uses: docker/build-push-action@v3
2224
with:
25+
context: .
2326
push: true
2427
tags: themranderson/conversionapi:latest

0 commit comments

Comments
 (0)