Skip to content

Commit

Permalink
Create push-to-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
camdenmoors committed Dec 15, 2021
1 parent 63713a4 commit 871c31b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/push-to-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Push Heimdall Lite to Docker Hub on every merge to master and tag as latest

on:
push:
branches: [ master ]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout the Heimdall Repository
uses: actions/checkout@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.lite
push: true
tags: mitre/heimdall-lite:latest

0 comments on commit 871c31b

Please sign in to comment.