mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 20:39:15 +01:00
32 lines
954 B
YAML
32 lines
954 B
YAML
---
|
|
name: Dockle
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
dockle:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCKER_CONTENT_TRUST: 1
|
|
DOCKLE_VERSION: 0.4.14
|
|
steps:
|
|
- uses: actions/checkout@v4.1.1
|
|
- name: Download and install dockle v${{ env.DOCKLE_VERSION }}
|
|
run: |
|
|
curl -L -o dockle.deb "https://github.com/goodwithtech/dockle/releases/download/v${DOCKLE_VERSION}/dockle_${DOCKLE_VERSION}_Linux-64bit.deb"
|
|
sudo dpkg -i dockle.deb
|
|
- run: |
|
|
cp .config/docker_example.env .config/docker.env
|
|
cp ./docker-compose_example.yml ./docker-compose.yml
|
|
- run: |
|
|
docker compose up -d web
|
|
docker tag "$(docker compose images web | awk 'OFS=":" {print $4}' | tail -n +2)" misskey-web:latest
|
|
- run: |
|
|
cmd="dockle --exit-code 1 misskey-web:latest ${image_name}"
|
|
echo "> ${cmd}"
|
|
eval "${cmd}"
|