From 8c5adacf6d84e761ed2efb3a3908f8732468fde7 Mon Sep 17 00:00:00 2001 From: Mariano Ruiz Date: Fri, 19 Apr 2024 19:16:54 -0300 Subject: [PATCH] Fix downloader --- .github/workflows/docker-image.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ea31c5a..6c5d13e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -13,6 +13,18 @@ jobs: - uses: actions/checkout@v2 - name: Inject slug/short variables uses: rlespinasse/github-slug-action@v4 + + - name: Get GitHub downloader + run: wget https://gist.github.com/mrsarm/95279381f3d8bf4269499fb437888e2c/raw/github-file.sh + - name: Get compose.yaml + env: + TOKEN: ${{ secrets.repo_token }} + run: bash ./github-file.sh compose.yaml mrsarm/dcoleman-e2e $GITHUB_REF_SLUG main $TOKEN + - name: Get .env.example + env: + TOKEN: ${{ secrets.repo_token }} + run: bash ./github-file.sh .env.example mrsarm/dcoleman-e2e $GITHUB_REF_SLUG main $TOKEN + - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -26,17 +38,6 @@ jobs: if: ${{ github.ref != 'refs/heads/master' }} run: docker push "mrsarm/django-coleman:${GITHUB_REF_SLUG}" - - name: Get GitHub downloader - run: wget https://gist.github.com/mrsarm/95279381f3d8bf4269499fb437888e2c/raw/github-file.sh - - name: Get compose.yaml - env: - TOKEN: ${{ secrets.repo_token }} - run: bash ./github-file.sh compose.yaml mrsarm/dcoleman-e2e $GITHUB_REF_SLUG main $TOKEN - - name: Get .env.example - env: - TOKEN: ${{ secrets.repo_token }} - run: bash ./github-file.sh .env.example mrsarm/dcoleman-e2e $GITHUB_REF_SLUG main $TOKEN - - name: Setup environment variables run: cp .env.example .env - name: Download pose