Skip to content

Commit

Permalink
Create docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-fintricity authored Aug 13, 2021
1 parent 4d8a73e commit 86558a9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
- name: docker build
run: |
docker build . -t ${{ secrets.DOCKER_HUB_REPOSITORY }}
- name: docker push
run: |
docker push ${{ secrets.DOCKER_HUB_REPOSITORY }}

0 comments on commit 86558a9

Please sign in to comment.