diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 131cf1a..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Release - -on: - # Trigger the workflow on push on the main branch - push: - branches: - - master - # Trigger the workflow by dispatching - workflow_dispatch: - -jobs: - release: - name: Release - runs-on: ubuntu-22.04 - - steps: - - name: Checkout - id: checkout - # from https://github.com/actions/checkout/commits/main - uses: actions/checkout@1f9a0c22da41e6ebfa534300ef656657ea2c6707 - with: - persist-credentials: false - fetch-depth: 0 - - - name: Release - id: release - # from https://github.com/cycjimmy/semantic-release-action/commits/main - uses: cycjimmy/semantic-release-action@bdd914ff2423e2792c73475f11e8da603182f32d - with: - semantic_version: 18.0.0 - extra_plugins: | - @semantic-release/release-notes-generator@10.0.3 - @semantic-release/git@10.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and Push - id: semver - uses: pagopa/github-actions-template/ghcr-build-push@v1.5.4 - with: - tag: ${{ steps.release.outputs.new_release_version }} - github_token: ${{ secrets.GITHUB_TOKEN }} - - diff --git a/.github/workflows/release_deploy.yml b/.github/workflows/release_deploy.yml new file mode 100644 index 0000000..766c59a --- /dev/null +++ b/.github/workflows/release_deploy.yml @@ -0,0 +1,36 @@ +name: Release + +# Controls when the workflow will run +on: + push: + branches: + - master + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + + +permissions: + packages: write + contents: write + issues: write + id-token: write + actions: read + + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + image: + name: Build and Push Docker Image + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.ref_name }} + + - name: Build and Push + id: semver + uses: pagopa/github-actions-template/ghcr-build-push@v1.5.4 + with: + tag: '1.0.3' + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index c54eab0..a5a7231 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -3,7 +3,7 @@ microservice-chart: image: repository: ghcr.io/pagopa/ubuntu-vm - tag: 1.0.2 + tag: 1.0.3 pullPolicy: Always deployment: diff --git a/scripts/connect_oracle.py b/scripts/connect_oracle.py index 46674da..a663caa 100644 --- a/scripts/connect_oracle.py +++ b/scripts/connect_oracle.py @@ -18,8 +18,8 @@ print("Executing query...") sqlQuery = str(""" UPDATE NODO4_CFG.PSP - SET NODO4_CFG.PSP='ABC' - WHERE NODO4_CFG.PSP.ID_PSP = 'JACOPO' + SET PSP='ABC' + WHERE PSP.ID_PSP = 'JACOPO' """) cursor.execute(sqlQuery)