Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sedflix authored Oct 3, 2020
1 parent eeabc63 commit 095be80
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,25 @@ on:

jobs:

build:
# build:

# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v2
# - name: Build the Docker image
# run: docker build . --file Dockerfile --tag fit:$(date +%s)

push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag fit:$(date +%s)
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sedflix/fit
tag_with_ref: true

0 comments on commit 095be80

Please sign in to comment.