Skip to content

Added login recipe to Makefile to easily login to locally running con… #37

Added login recipe to Makefile to easily login to locally running con…

Added login recipe to Makefile to easily login to locally running con… #37

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- main # or any other branch you want to trigger the workflow
- "features/*"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Log in to Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io # replace with your registry if different
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push "Latest" Docker image
id: build-and-push-latest
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/unity-ui-application:latest # replace with your image name and tag