Skip to content

added pipeline

added pipeline #1

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag git.local.skill17.com/${{ github.repository }}
- name: docker login
env:
USER: ${{ secrets.USER }}
PASS: ${{ secrets.PASS }}
run: docker login -u $USER -p $PASS git.local.skill17.com
- name: push to docker hub
run: docker push git.local.skill17.com/${{ github.repository }}