AndreasAugustin / go-gitmoji-cli

:octocat: A conventional gitmoji commit interactive command line tool for using emojis on conventional commits. :rocket:
https://gitmoji.dev/
MIT License
8 stars 0 forks source link

[Feat]: add tests for the docker images after deployment #40

Closed AndreasAugustin closed 1 year ago

AndreasAugustin commented 1 year ago

Describe the feature

Currently docker images are released and push to registries. Those images should be tested after the release

Use Case

Check if the newly created images are valid

Proposed Solution

like in https://github.com/AndreasAugustin/actions-template-sync/blob/main/.github/workflows/push_docker.yml us container structured tests

      -
        name: run tests
        run: |
          echo "Install container tools"
          curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 \
            && chmod +x container-structure-test-linux-amd64 \
            && sudo mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test
          echo "Run tests"
          container-structure-test test \
            --image ghcr.io/andreasaugustin/${{ matrix.variant }}:${{ steps.meta.outputs.version }} \
            --config src/test-config.yaml

Acknowledgements