Skip to content

add publishing to custom registry #1

add publishing to custom registry

add publishing to custom registry #1

name: Deploy dockerimage
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
-
name: Cloning repo
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: registry.rivit.dev
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: blog:latest