37 lines
1.0 KiB
YAML
Raw Normal View History

2025-01-25 16:02:06 +01:00
name: test
run-name: test
on:
push:
branches:
- main
2025-01-25 20:31:58 +01:00
2025-01-25 16:02:06 +01:00
jobs:
test:
runs-on: ubuntu-latest
container:
image: ovlach/docker-gitea:v0.0.2-alpha
steps:
- uses: https://github.com/actions/checkout.git@v4
2025-01-25 16:49:44 +01:00
- uses: actions/docker-image@v1
2025-01-25 16:02:06 +01:00
name: Test action
id: docker_image_test
with:
deployment_login: ${{ secrets.DEPLOYMENT_PACKAGE }}
registry: 'git.nanobyte.cz'
image_name: git.nanobyte.cz/${{ github.repository_owner }}/action-test
docker_version_prefix: 'test'
docker_file: 'test/test.Dockerfile'
additional_version: ''
docker_push: false
- shell: sh
run: |
echo "${{ steps.docker_image_test.outputs.image_version }}"
echo "${{ steps.docker_image_test.outputs.image_ref }}"
if [ -z "${{ steps.docker_image_test.outputs.image_version }}" ]; then
exit 1;
fi
if [ -z "${{ steps.docker_image_test.outputs.image_ref }}" ]; then
exit 1;
fi