Skip to content

add workflow

add workflow #1

name: Build and Push Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
buildAndPushDockerImage:
name: Build & Push Docker Image
runs-on: ubuntu-latest
steps:
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USR }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
push: true
tags:
${{ github.repository }}:latest