Skip to content

2.1.6

2.1.6 #15

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: Overwrite UI
run: |
ls -alF
rm -rf ./web/*
curl -fsSL github.com/qxip/webshark-ui/releases/latest/download/latest.zip -O
unzip latest.zip -d ./web
- 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 }}