Skip to content

Commit

Permalink
Fix deployment workflows after API URL change
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Aug 9, 2022
1 parent d17e8ff commit 7c73bc6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- .github/workflows/deploy-*.yaml

env:
OPENSHIFT_API: https://api.c-appuio-cloudscale-lpg-2.appuio.cloud:6443
OPENSHIFT_API: https://api.cloudscale-lpg-2.appuio.cloud:6443
HELM_RELEASE_NAME: odootools
NAMESPACE: vshn-odoo-prod

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

env:
ENVIRONMENT: test
OPENSHIFT_API: https://api.c-appuio-cloudscale-lpg-2.appuio.cloud:6443
OPENSHIFT_API: https://api.cloudscale-lpg-2.appuio.cloud:6443
HELM_RELEASE_NAME: odootools-pr-${{ github.event.number }}
REGISTRY_URL: registry.cloudscale-lpg-2.appuio.cloud
IMG_TAG: pr-${{ github.event.number }}
Expand All @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3

- name: Determine Go version from go.mod
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV

- uses: actions/setup-go@v3
with:
Expand Down Expand Up @@ -51,8 +51,6 @@ jobs:
openshift_server_url: ${{ env.OPENSHIFT_API }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: ${{ env.NAMESPACE }}
# We don't have a LE cert yet
insecure_skip_tls_verify: true

- name: Docker login
uses: docker/login-action@v2
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "*"

env:
OPENSHIFT_API: https://api.c-appuio-cloudscale-lpg-2.appuio.cloud:6443
OPENSHIFT_API: https://api.cloudscale-lpg-2.appuio.cloud:6443
HELM_RELEASE_NAME: odootools

jobs:
Expand Down Expand Up @@ -34,8 +34,6 @@ jobs:
openshift_server_url: ${{ env.OPENSHIFT_API }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: vshn-odoo-prod
# We don't have a LE cert yet
insecure_skip_tls_verify: true

- name: Deploy app
run: helmfile -f envs/helmfile.yaml -e prod apply
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/destroy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
ENVIRONMENT: test
OPENSHIFT_API: https://api.c-appuio-cloudscale-lpg-2.appuio.cloud:6443
OPENSHIFT_API: https://api.cloudscale-lpg-2.appuio.cloud:6443
HELM_RELEASE_NAME: odootools-pr-${{ github.event.number }}
IMG_TAG: pr-${{ github.event.number }}
NAMESPACE: vshn-odoo-test
Expand Down Expand Up @@ -37,8 +37,6 @@ jobs:
openshift_server_url: ${{ env.OPENSHIFT_API }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: ${{ env.NAMESPACE }}
# We don't have a LE cert yet
insecure_skip_tls_verify: true

- name: Uninstall app
run: make preview.destroy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3

- name: Determine Go version from go.mod
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV

- uses: actions/setup-go@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fetch-depth: 0

- name: Determine Go version from go.mod
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV

- uses: actions/setup-go@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3

- name: Determine Go version from go.mod
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV

- uses: actions/setup-go@v3
with:
Expand Down

0 comments on commit 7c73bc6

Please sign in to comment.