This commit is contained in:
35
.gitea/workflows/test.yaml
Normal file
35
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: test
|
||||
run-name: test
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ovlach/docker-gitea:v0.0.2-alpha
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout.git@v4
|
||||
- uses: actions/docker-image@main
|
||||
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
|
||||
Reference in New Issue
Block a user