Skip to content

Commit

Permalink
finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
dohsimpson committed Jan 17, 2025
1 parent 02a6275 commit 6166663
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,29 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# - name: Build and push Docker images
# uses: docker/build-push-action@v5
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# push: true
# tags: |
# ${{ steps.check-version.outputs.EXISTS == 'false' && format('dohsimpson/habittrove:v{0}', steps.package-version.outputs.VERSION) || '' }}
# ${{ steps.check-version.outputs.EXISTS == 'false' && 'dohsimpson/habittrove:latest' || '' }}
# dohsimpson/habittrove:dev
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ steps.check-version.outputs.EXISTS == 'false' && format('dohsimpson/habittrove:v{0}', steps.package-version.outputs.VERSION) || '' }}
${{ steps.check-version.outputs.EXISTS == 'false' && 'dohsimpson/habittrove:latest' || '' }}
dohsimpson/habittrove:dev
# deploy-demo:
# runs-on: ubuntu-latest
# needs: build-and-push
# # demo tracks the latest tag
# if: needs.build-and-push.outputs.EXISTS == 'false'
# steps:
# - uses: actions/checkout@v4
# - uses: actions-hub/kubectl@master
# env:
# KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
# with:
# args: rollout restart -n ${{ secrets.KUBE_NAMESPACE }} deploy/${{ secrets.KUBE_DEPLOYMENT }}
deploy-demo:
runs-on: ubuntu-latest
needs: build-and-push
# demo tracks the latest tag
if: needs.build-and-push.outputs.EXISTS == 'false'
steps:
- uses: actions/checkout@v4
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: rollout restart -n ${{ secrets.KUBE_NAMESPACE }} deploy/${{ secrets.KUBE_DEPLOYMENT }}

create-release:
runs-on: ubuntu-latest
Expand All @@ -89,7 +89,7 @@ jobs:
$0 ~ "## Version " && flag {exit}
flag' CHANGELOG.md)
gh release create "test-release-v$VERSION" \
gh release create "v$VERSION" \
--repo="$GITHUB_REPOSITORY" \
--title="HabitTrove v$VERSION" \
--title="v$VERSION" \
--notes="$notes"

0 comments on commit 6166663

Please sign in to comment.