Skip to content

Merge pull request #1 from scholarX-Assesment/master #2

Merge pull request #1 from scholarX-Assesment/master

Merge pull request #1 from scholarX-Assesment/master #2

Workflow file for this run

name: Build and Push Docker Image to GHCR
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
REPOSITORY: ${{ github.repository }}
TAG: latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry : ghcr.io
username: ${{ secrets.SCX_GITHUB_USERNAME }}
password: ${{ secrets.SCX_GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
ghcr.io/scholarx-assesment/api-gateway:latest