Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/deploy-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "📦 Building version: $VERSION"

- name: Log into Docker Hub
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin

- name: Build and push Docker image
run: |
docker buildx build --platform linux/amd64 \
--build-arg NEXT_PUBLIC_UMAMI_WEBSITE_ID=${{ secrets.NEXT_PUBLIC_UMAMI_WEBSITE_ID }} \
--build-arg NEXT_PUBLIC_TURNSTILE_SITE_KEY=${{ secrets.NEXT_PUBLIC_TURNSTILE_SITE_KEY }} \
--build-arg NEXT_PUBLIC_SENTRY_DSN=${{ secrets.NEXT_PUBLIC_SENTRY_DSN }} \
-t ${{ secrets.DOCKER_REGISTRY }}/lynxprompt:${{ steps.version.outputs.version }} \
-t ${{ secrets.DOCKER_REGISTRY }}/lynxprompt:dev-latest \
-t drumsergio/lynxprompt:${{ steps.version.outputs.version }} \
-t drumsergio/lynxprompt:dev-latest \
--push .

- name: Trigger Portainer deployment
Expand All @@ -50,7 +53,7 @@ jobs:
cd geiserback-deploy

# Update image tag
sed -i 's|image: .*/lynxprompt:.*|image: ${{ secrets.DOCKER_REGISTRY }}/lynxprompt:${{ steps.version.outputs.version }}|' lynxprompt-dev/docker-compose.yml
sed -i 's|image: drumsergio/lynxprompt:.*|image: drumsergio/lynxprompt:${{ steps.version.outputs.version }}|' lynxprompt-dev/docker-compose.yml

# Commit and push
git config user.email "github-actions@lynxprompt.com"
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,18 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "✅ Deploying version $VERSION"

- name: Log into Docker Hub
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin

- name: Build and push Docker image
run: |
docker buildx build --platform linux/amd64 \
--build-arg NEXT_PUBLIC_UMAMI_WEBSITE_ID=${{ secrets.NEXT_PUBLIC_UMAMI_WEBSITE_ID }} \
--build-arg NEXT_PUBLIC_TURNSTILE_SITE_KEY=${{ secrets.NEXT_PUBLIC_TURNSTILE_SITE_KEY }} \
--build-arg NEXT_PUBLIC_SENTRY_DSN=${{ secrets.NEXT_PUBLIC_SENTRY_DSN }} \
-t ${{ secrets.DOCKER_REGISTRY }}/lynxprompt:${{ steps.version.outputs.version }} \
-t drumsergio/lynxprompt:${{ steps.version.outputs.version }} \
--push .
echo "✅ Built and pushed ${{ secrets.DOCKER_REGISTRY }}/lynxprompt:${{ steps.version.outputs.version }}"
echo "✅ Built and pushed drumsergio/lynxprompt:${{ steps.version.outputs.version }}"

- name: Update watchtower docker-compose with new version
run: |
Expand All @@ -53,7 +56,7 @@ jobs:
cd watchtower-deploy

# Update image tag in docker-compose
sed -i 's|image: ${{ secrets.DOCKER_REGISTRY }}/lynxprompt:.*|image: ${{ secrets.DOCKER_REGISTRY }}/lynxprompt:${{ steps.version.outputs.version }}|' lynxprompt/docker-compose.yml
sed -i 's|image: drumsergio/lynxprompt:.*|image: drumsergio/lynxprompt:${{ steps.version.outputs.version }}|' lynxprompt/docker-compose.yml

# Commit and push
git config user.email "github-actions@lynxprompt.com"
Expand Down