Skip to content

Commit

Permalink
Fix downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsarm committed Apr 19, 2024
1 parent a467ad5 commit 8c5adac
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 8c5adac

Please sign in to comment.