Create docker-image.yml
This commit is contained in:
parent
da8f32852c
commit
f95c7b6c5b
27
.github/workflows/docker-image.yml
vendored
Normal file
27
.github/workflows/docker-image.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "development" ]
|
||||
pull_request:
|
||||
branches: [ "development" ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Docker Hub Login
|
||||
env:
|
||||
DOCKER_USERNAME: ${{secrets.DOCKER_USER}}
|
||||
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
|
||||
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag defuj/eis:$(date +%s)
|
||||
|
||||
- name: Docker Push
|
||||
run: docker push ${{secrets.DOCKER_USERNAME}}/eis
|
Loading…
x
Reference in New Issue
Block a user