From ae907ce7c0e693466e5d110b3b4bfe27ba972cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bla=C5=A1ko?= Date: Thu, 8 Jun 2023 10:28:48 +0200 Subject: [PATCH] Extract AL_DEV_URL into organization variables --- .github/workflows/build-and-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index c641c3c9..f3136650 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -1,4 +1,4 @@ -name: Docker +name: Publish Docker Image on: push: @@ -8,8 +8,8 @@ on: workflow_dispatch: env: - # TODO: Change variable to your image's name. IMAGE_NAME: al-termit + AL_DEV_URL: ${{ vars.AL_DEV_URL }} # e.g. https://xn--slovnk-test-scb.dia.gov.cz/modelujeme jobs: # Push image to GitHub Packages. @@ -59,4 +59,4 @@ jobs: uses: wei/curl@v1.1.1 with: args: | - -H \"X-Secret: ${{ secrets.AL_DEV_SECRET }}\" -X POST https://xn--slovnk-test-scb.mvcr.gov.cz/modelujeme/update/${{ env.IMAGE_NAME }}.php + -H \"X-Secret: ${{ secrets.AL_DEV_SECRET }}\" -X POST ${{ env.AL_DEV_URL }}/update/${{ env.IMAGE_NAME }}.php