-
-
Notifications
You must be signed in to change notification settings - Fork 48
43 lines (36 loc) · 1.02 KB
/
docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 }}