Skip to content

Merge pull request #81 from saranshbalyan-1234/dependabot/npm_and_yar… #37

Merge pull request #81 from saranshbalyan-1234/dependabot/npm_and_yar…

Merge pull request #81 from saranshbalyan-1234/dependabot/npm_and_yar… #37

Workflow file for this run

name: deploy
on:
workflow_dispatch:
# pull_request:
# branches:
# - main
# workflow_run:
# workflows:
# - reviewdog
# types:
# - completed
push:
branches:
- 'main'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: ./Backend/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}