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