fix container tag
This commit is contained in:
@@ -16,7 +16,7 @@ env:
|
|||||||
CONTAINER_NAME: deploy_test-${{ gitea.run_id }}
|
CONTAINER_NAME: deploy_test-${{ gitea.run_id }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
runs-on: test
|
runs-on: test
|
||||||
steps:
|
steps:
|
||||||
- name: clone repo
|
- name: clone repo
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
run: docker build -t $REGISTRY_HOST/$CONTAINER_TAG:$CONTAINER_VERSION .
|
run: docker build -t $REGISTRY_HOST/$CONTAINER_TAG:$CONTAINER_VERSION .
|
||||||
- name: test docker container comes up
|
- name: test docker container comes up
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -d --name $CONTAINER_NAME -p $TEST_PORT:$TEST_PORT -e ICINGA2_API_USER_ROOT_PASS=$TMP_API_PASS $CONTAINER_TAG:$CONTAINER_VERSION
|
docker run --rm -d --name $CONTAINER_NAME -p $TEST_PORT:$TEST_PORT -e ICINGA2_API_USER_ROOT_PASS=$TMP_API_PASS $REGISTRY_HOST/$CONTAINER_TAG:$CONTAINER_VERSION
|
||||||
sleep $DEPLOY_TIME
|
sleep $DEPLOY_TIME
|
||||||
curl -k -s -S -i -u root:$TMP_API_PASS "https://localhost:$TEST_PORT/v1"
|
curl -k -s -S -i -u root:$TMP_API_PASS "https://localhost:$TEST_PORT/v1"
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user