Skip to content

Commit

Permalink
added docker build and push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mezdahun authored Mar 11, 2022
1 parent 6a6f40c commit 9bf1901
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image CI

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Docker Login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file Dockerfile --tag mezdahun/scioip34abm:$(date +%s)
- name: Push Docker image to DockerHub
run: docker push ${{secrets.DOCKER_USER}}/scioip34abm

0 comments on commit 9bf1901

Please sign in to comment.