Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

test2

test2 #10

Workflow file for this run

name: Build and Publish
on: [push]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push to ghcr
run: |
docker build . --tag ghcr.io/cn-lab/cn-lab-image:latest
docker run ghcr.io/kbdharun/cn-lab-image:latest
docker push ghcr.io/kbdharun/cn-lab-image:latest