Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
- "feature/deploy"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login to Dockerhub Container Registry'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: 'Build Docker Image'
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: $/authentification-service:latest