Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Merge pull request #1 from free-domains/dependabot/npm_and_yarn/doten… #7

Merge pull request #1 from free-domains/dependabot/npm_and_yarn/doten…

Merge pull request #1 from free-domains/dependabot/npm_and_yarn/doten… #7

Workflow file for this run

name: Docker
on:
push:
branches: [main]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and Push Image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Deploy
run: curl -X POST ${{ secrets.WEBHOOK }}