Added docker

This commit is contained in:
Nate Choe
2022-04-04 12:19:39 -05:00
parent 8dd0e6a06c
commit 00bbd9c1d4
5 changed files with 52 additions and 0 deletions

28
.github/workflows/docker.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Docker Hub
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set login
uses: azure/docker-login@v1
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build image
working-directory: ${{github.workspace}}
run: ./build.sh
- name: Push image
run: docker push natechoe/swebs