Skip to content

Add docker image workflow #1

Add docker image workflow

Add docker image workflow #1

Workflow file for this run

name: Docker Image CI
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKERHUB_USER}}
DOCKER_PASS: ${{secrets.DOCKERHUB_PASS}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
- name: Build the Docker image
run: docker build . --file Dockerfile --tag msosav/talent-pool-docker:latest
- name: Docker Push
run: docker push msosav/talent-pool-docker