Open gbonnefille opened 3 years ago
The idea is to use the addnab/docker-run-action@v3 Github Action. For example:
- name: Branch name
id: branch-name
run: |
echo ::set-output name=NAME::${GITHUB_REF#refs/heads/}
- name: Validate
uses: addnab/docker-run-action@v3
with:
image: hfjcmwgl.gra5.container-registry.ovh.net/world-cereal/ewocs1processing:${{ steps.branch-name.outputs.NAME }}
run: /opt/entrypoint.sh python --version
@gbonnefille not functional on tags !
@gbonnefille not functional on tags !
The workflow does not create the good Docker's Tag when the event is a Git Tag. First question: is it necessary to run this test on Git Tag event? The test was certainly already made on the corresponding update of the Git Branch.
Once Docker image is generated, do minimal test to validate it is functionnal.