Skip to content

Workflow file for this run

name: Docker Build & Release
on:
release:
types: [created]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
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/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Build and push
uses: docker/[email protected]
with:
context: .
push: true
tags: |
ghcr.io/qxip/webshark:latest
ghcr.io/qxip/webshark:${{ github.event.release.tag_name }}