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

Merge pull request #1 from MadrHacks/k8s #7

Merge pull request #1 from MadrHacks/k8s

Merge pull request #1 from MadrHacks/k8s #7

Workflow file for this run

---
name: Build and push docker image
on:
push:
branches: [main]
workflow_dispatch:
env:
REGISTRY: ghcr.io
TAG: latest
jobs:
build-and-push:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
file: Dockerfile
push: true
tags: ${{ env.REGISTRY }}/madrhacks/jail:${{ env.TAG }}