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