rework workflows

pull/112/head
binhex 3 years ago
parent 43c1ad91d4
commit f9ee269e3a

@ -1,4 +1,4 @@
name: docker-tag-triggered-prod name: wokrflow-docker-release
on: on:
push: push:
@ -71,6 +71,14 @@ jobs:
retry_wait_seconds: 120 retry_wait_seconds: 120
command: | command: |
docker images docker images
- name: Run Smoke Tests
shell: bash
run: |
git_clone_scripts_dest="/tmp/scripts"
git_clone_scripts_repo="https://github.com/binhex/scripts.git"
git clone "${git_clone_scripts_repo}" "${git_clone_scripts_dest}"
"${git_clone_scripts_dest}/shell/arch/docker/testrunner.sh" --image-name "ghcr.io/${{ github.repository }}:${{ steps.identify_tag.outputs.tag }}" --host-port '9999' --container-port '8118' --network-type 'bridge' --env-vars '-e VPN_ENABLED=no'
- name: Push Docker image to Docker Hub - name: Push Docker image to Docker Hub
uses: nick-invision/retry@v2.4.0 uses: nick-invision/retry@v2.4.0
with: with:

@ -1,4 +1,4 @@
name: docker-manual-triggered-test name: workflow-docker-manual
on: on:
workflow_dispatch: workflow_dispatch:
@ -43,6 +43,14 @@ jobs:
--tag ${{ github.repository }}:${{ github.event.inputs.tags }} \ --tag ${{ github.repository }}:${{ github.event.inputs.tags }} \
--tag ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }} \ --tag ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }} \
. .
- name: Run Smoke Tests
shell: bash
run: |
git_clone_scripts_dest="/tmp/scripts"
git_clone_scripts_repo="https://github.com/binhex/scripts.git"
git clone "${git_clone_scripts_repo}" "${git_clone_scripts_dest}"
"${git_clone_scripts_dest}/shell/arch/docker/testrunner.sh" --image-name "ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}" --host-port '9999' --container-port '8118' --network-type 'bridge' --env-vars '-e VPN_ENABLED=no'
- name: Push Docker image to Docker Hub - name: Push Docker image to Docker Hub
uses: nick-invision/retry@v2.4.0 uses: nick-invision/retry@v2.4.0
with: with:
Loading…
Cancel
Save