Skip to content

Commit

Permalink
Tidy up names and asset wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
Webreaper committed Jan 26, 2021
1 parent 8f97fec commit 69caddc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/damselfly-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker for Dev
- name: Build Docker for Dev (develop only)
if: github.ref == 'refs/heads/develop'
run: sh scripts/makedocker.sh dev

- name: Build Docker for Release
- name: Build Docker for Release (master only)
if: github.ref == 'refs/heads/master'
run: sh scripts/makedocker.sh

- name: Create Release
- name: Create Release (master only)
id: create_release
if: github.ref == 'refs/heads/master'
uses: actions/create-release@v1
Expand All @@ -136,9 +136,10 @@ jobs:
draft: true
prerelease: true

- uses: alexellis/[email protected]
- name: Upload assets to Release (master only)
uses: alexellis/[email protected]
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./server/*", "./publish/wwwroot/desktop"]'
asset_paths: '["./server/*", "./publish/wwwroot/desktop/*"]'
13 changes: 7 additions & 6 deletions scripts/makedocker.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@

if [ -n "$1" ]; then
echo 'No docker tag specified. Pushing to dev'
DOCKERTAG='dev'
else
version=`cat VERSION`
DOCKERTAG="${version}-beta"
else
echo 'No docker tag specified. Defaulting to dev'
DOCKERTAG='dev'
echo "Pushing to docker tag: ${DOCKERTAG}"
fi

echo "**** Building Docker Damselfly"
docker build -t damselfly .

echo "*** Pushing docker image to ${DOCKERTAG}"
echo "*** Pushing docker image to webreaper/damselfly:${DOCKERTAG}"

docker tag damselfly webreaper/damselfly:$DOCKERTAG
docker push webreaper/damselfly:$DOCKERTAG
# docker tag damselfly webreaper/damselfly:$DOCKERTAG
# docker push webreaper/damselfly:$DOCKERTAG

echo "Damselfly docker build complete."

0 comments on commit 69caddc

Please sign in to comment.