name: Docker build test on: workflow_call: secrets: password: description: "Password or personal access token used to log against the Docker registry" required: true jobs: deploy: runs-on: ubuntu-latest if: ${{ startsWith(gitea.ref, 'refs/tags/v') }} steps: - uses: https://gitea.okami101.io/okami101/actions/docker@main with: password: test - name: Push tags shell: bash if: ${{ startsWith(gitea.ref, 'refs/tags/v') }} env: DOCKER_IMAGE: ${{ inputs.registry }}/${{ gitea.repository }} run: | docker tag $DOCKER_IMAGE:main $DOCKER_IMAGE:latest docker tag $DOCKER_IMAGE:main $DOCKER_IMAGE:${{ steps.meta.outputs.version }} docker push -a $DOCKER_IMAGE