diff --git a/.github/workflows/docker.build.yml b/.github/workflows/docker.build.yml index 78b0a8cb..d71d8747 100644 --- a/.github/workflows/docker.build.yml +++ b/.github/workflows/docker.build.yml @@ -1,11 +1,12 @@ name: Docker build on: - push: - branches: - - 'main' - tags: - - '*' + #push: + # branches: + # - 'main' + #tags: + # - '*' + pull_request: jobs: docker-build: runs-on: ubuntu-latest @@ -56,27 +57,41 @@ jobs: tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} #Staging: Create pull request on deploy repo from a merged PR + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + - run: pip install -r .github/workflows/requirements.txt - name: create pull request for deploy on staging uses: actions/checkout@v3 - # remove this if statement after fixing the PR - if: 1==2 with: repository: wmde/wbaas-deploy # Make changes to pull request here - - # TODO: Remove this if statement after fixing the PR - if: 1==2 - run: | - get_tag=$(echo ${{ steps.docker_meta.outputs.tags }} | cut -d':' -f2) - yq -i '.image.tag=$get_tag' k8s/helmfile/env/local/ui.values.yaml.gotmpl - yq -i '.image.tag=$get_tag' k8s/helmfile/env/staging/ui.values.yaml.gotmpl + - run: | + export GET_TAG="$(echo ${{ steps.docker_meta.outputs.tags }} | cut -d':' -f2)" + python - < author: ${{ github.actor }} labels: automated pr @@ -84,23 +99,26 @@ jobs: #Production: Create pull request on deploy repo from a merged PR - name: create pull request for deploy on production uses: actions/checkout@v3 - # remove this if statement after fixing the PR - if: 1==2 with: repository: wmde/wbaas-deploy # Make changes to pull request here - - # TODO: Remove this if statement after fixing the PR - if: 1==2 - run: | - get_tag=$(echo ${{ steps.docker_meta.outputs.tags }} | cut -d':' -f2) - yq -i '.image.tag=$get_tag' k8s/helmfile/env/production/ui.values.yaml.gotmpl + - run: | + python - < author: ${{ github.actor }} labels: automated pr