Skip to content

Commit

Permalink
test: remove echo
Browse files Browse the repository at this point in the history
  • Loading branch information
seblum committed Aug 12, 2024
1 parent c565b35 commit 13bf862
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions .github/workflows/CD_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ env:

on:
workflow_dispatch:
pull_request:
branches: [ master ]
push:
paths:
- 'pyproject.toml' # This will trigger the workflow only if pyproject.toml is changed
Expand Down Expand Up @@ -47,37 +49,37 @@ jobs:
echo "versions_changed=true" >> $GITHUB_OUTPUT
fi
deploy:
name: "📦 Build & Push : ${{ matrix.tags }}"
runs-on: ubuntu-latest
strategy:
matrix:
tags: ["latest","v${{ needs.get-tag.outputs.PACKAGE_VERSION }}"]
needs: get-tag
if: ${{ needs.get-tag.outputs.versions_changed }}
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
file: ./poetry.Dockerfile
push: true
tags: ${{ env.DOCKERREPO }}:${{ matrix.tags }}
# deploy:
# name: "📦 Build & Push : ${{ matrix.tags }}"
# runs-on: ubuntu-latest
# strategy:
# matrix:
# tags: ["latest","v${{ needs.get-tag.outputs.PACKAGE_VERSION }}"]
# needs: get-tag
# if: ${{ needs.get-tag.outputs.versions_changed }}
# steps:
# -
# name: Checkout code
# uses: actions/checkout@v4
# -
# name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# -
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# -
# name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# -
# name: Build and push
# uses: docker/build-push-action@v6
# with:
# file: ./poetry.Dockerfile
# push: true
# tags: ${{ env.DOCKERREPO }}:${{ matrix.tags }}

run-on-schedule-version-bump:
runs-on: ubuntu-latest
Expand All @@ -86,7 +88,7 @@ jobs:
issues: write
pull-requests: write
needs:
- deploy
# - deploy
- get-tag
env:
TAG_VERSION: ${{ needs.get-tag.outputs.PACKAGE_VERSION }}
Expand All @@ -108,7 +110,6 @@ jobs:
-
name: Update Version in pyproject.toml
run: |
echo "Extracted tag version: ${{ env.TAG_VERSION }}"
cd .github/workflows
sed -i "s/^DOCKER_IMAGE: \"octivbooker:.*\"/DOCKER_IMAGE: \"octivbooker:v${{ env.TAG_VERSION }}\"/" run-on-schedule.yml
-
Expand Down

0 comments on commit 13bf862

Please sign in to comment.