2023-02-05 14:04:02 +09:00
|
|
|
---
|
|
|
|
name: Dockle
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
dockle:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
DOCKER_CONTENT_TRUST: 1
|
2024-06-15 14:10:37 +09:00
|
|
|
DOCKLE_VERSION: 0.4.14
|
2023-02-05 14:04:02 +09:00
|
|
|
steps:
|
2023-10-19 19:35:13 +09:00
|
|
|
- uses: actions/checkout@v4.1.1
|
2024-06-15 14:10:37 +09:00
|
|
|
- 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"
|
2023-02-05 14:04:02 +09:00
|
|
|
sudo dpkg -i dockle.deb
|
|
|
|
- run: |
|
|
|
|
cp .config/docker_example.env .config/docker.env
|
2023-12-01 11:19:33 +09:00
|
|
|
cp ./docker-compose_example.yml ./docker-compose.yml
|
2023-02-05 14:04:02 +09:00
|
|
|
- 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}"
|