From c8f6d9ed9b1840869f0fe73abd033d777de49e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20J=C3=A4ppinen?= Date: Thu, 13 Feb 2025 12:07:47 +0200 Subject: [PATCH] test --- .github/workflows/main.yaml | 6 ---- .github/workflows/pull-request.yaml | 55 ----------------------------- 2 files changed, 61 deletions(-) delete mode 100644 .github/workflows/pull-request.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e45a973..2c34444 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -6,10 +6,6 @@ on: - main workflow_dispatch: { } -env: - GCP_REPO: europe-north1-docker.pkg.dev/vivid-env-450617-g5/teemu-images - DOCKER_IMAGE: dataeng - jobs: git-tag-and-push: runs-on: @@ -29,10 +25,8 @@ jobs: id: versioning run: | git fetch --tags - # make git-tag-and-push pip3 install --user ruamel.yaml VERSION=$(python3 -c "import dataeng; print(dataeng.__version__)") - echo "version is: $VERSION" git tag -a $(VERSION) -m v$(VERSION) && git push origin $(VERSION) echo "version=$VERSION" >> $GITHUB_OUTPUT diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml deleted file mode 100644 index ed926b2..0000000 --- a/.github/workflows/pull-request.yaml +++ /dev/null @@ -1,55 +0,0 @@ -name: Pull request - -on: - workflow_dispatch: { } - -jobs: - - docker-build-test: - runs-on: ubuntu-latest - timeout-minutes: 20 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Authenticate to GCP - uses: google-github-actions/auth@v2 - id: gcp_auth - with: - credentials_json: ${{ secrets.GCP_REPO_JSON_KEY }} - - - name: Set up Cloud SDK - uses: google-github-actions/setup-gcloud@v2 - - - name: Register gcloud as a Docker credential helper - run: gcloud auth configure-docker europe-north1-docker.pkg.dev - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: '3.12' - architecture: x64 - - - name: Setup Docker buildx - uses: docker/setup-buildx-action@v2 - - - name: Define image meta - id: docker_meta - uses: docker/metadata-action@v4 - with: - images: | - europe-north1-docker.pkg.dev/vivid-env-450617-g5/teemu-images/dataeng - flavor: | - latest=false - - - name: Build release image - uses: docker/build-push-action@v4 - with: - context: . - no-cache: false - push: false - platforms: linux/amd64 - provenance: false - secret-files: | - gcp_secret=${{ steps.gcp_auth.outputs.credentials_file_path }}