PR to test dockle.yml #89
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Dockle | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
jobs: | |
dockle: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_CONTENT_TRUST: 1 | |
steps: | |
- uses: actions/[email protected] | |
- run: | | |
curl -L -o dockle.deb "https://github.com/goodwithtech/dockle/releases/download/v0.4.10/dockle_0.4.10_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 | |
echo "----------------" | |
docker compose images web | cat | |
echo "----------------" | |
IMAGE_ID="$(docker compose images web | awk 'OFS=":" {print $4}' | tail -n +2)" | |
echo "IMAGE_ID: $IMAGE_ID" | |
docker tag "$IMAGE_ID" misskey-web:latest | |
- run: | | |
cmd="dockle --exit-code 1 misskey-web:latest ${image_name}" | |
echo "> ${cmd}" | |
eval "${cmd}" |