Skip to content

Commit

Permalink
Create build_push_docker-lates.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Merritt-Brian authored Aug 12, 2021
1 parent ad3e6c9 commit 645cf46
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build_push_docker-lates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and push Docker image for pre-release

on:
release:
types: [published] # , created, edited

jobs:
push_to_registry:
name: Build and push Docker image for pre-release
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
lfs: true
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
name: ${{ secrets.DOCKERHUB_REPOSITORY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ secrets.DOCKERHUB_REPOSITORY }}
tag_with_ref: true
tag_with_sha: true
tags: latest
lfs: true

0 comments on commit 645cf46

Please sign in to comment.