diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4866b0f..118f188 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,30 +1,30 @@ -name: Deploy -on: - push: - branches: - - main +# name: Deploy +# on: +# push: +# branches: +# - main -jobs: - docker-image: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: serlo/configure-repositories/actions/setup-node@main - - uses: google-github-actions/auth@v2 - with: - credentials_json: '${{ secrets.GCP_KEY_CONTAINER_REGISTRY }}' - - run: gcloud auth configure-docker - - uses: google-github-actions/setup-gcloud@v2 - - run: yarn push-image:latest - deploy-image: - runs-on: ubuntu-latest - needs: docker-image - steps: - - uses: google-github-actions/auth@v2 - with: - credentials_json: '${{ secrets.GCP_STAGING_SERVICE_ACCOUNT }}' - - uses: google-github-actions/get-gke-credentials@v2 - with: - cluster_name: serlo-staging-cluster - location: europe-west3-a - - run: kubectl delete pod -n editor -l app=editor-as-lti-tool +# jobs: +# docker-image: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# - uses: serlo/configure-repositories/actions/setup-node@main +# - uses: google-github-actions/auth@v2 +# with: +# credentials_json: '${{ secrets.GCP_KEY_CONTAINER_REGISTRY }}' +# - run: gcloud auth configure-docker +# - uses: google-github-actions/setup-gcloud@v2 +# - run: yarn push-image:latest +# deploy-image: +# runs-on: ubuntu-latest +# needs: docker-image +# steps: +# - uses: google-github-actions/auth@v2 +# with: +# credentials_json: '${{ secrets.GCP_STAGING_SERVICE_ACCOUNT }}' +# - uses: google-github-actions/get-gke-credentials@v2 +# with: +# cluster_name: serlo-staging-cluster +# location: europe-west3-a +# - run: kubectl delete pod -n editor -l app=editor-as-lti-tool diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5cda7d1..7a2ee36 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,34 +1,34 @@ -name: Docker -on: - pull_request: - merge_group: -jobs: - build-docker-images: - name: Build docker images - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - imagetag: [dev, latest] - include: - - imagetag: dev - dockerfile: Dockerfile.dev - - imagetag: latest - dockerfile: Dockerfile - steps: - - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Build the ${{ matrix.imagetag }} image - uses: docker/build-push-action@v5 - with: - push: false - load: true - file: ${{ matrix.dockerfile }} - tags: local-build:${{ matrix.imagetag }} - - uses: serlo/configure-repositories/actions/setup-node@main - - name: Run the ${{ matrix.imagetag }} docker image - run: yarn docker:run local-build:${{ matrix.imagetag }} - # TODO - # - name: Test the docker container ${{ matrix.imagetag }} - # run: yarn test:docker +# name: Docker +# on: +# pull_request: +# merge_group: +# jobs: +# build-docker-images: +# name: Build docker images +# runs-on: ubuntu-latest +# strategy: +# fail-fast: false +# matrix: +# imagetag: [dev, latest] +# include: +# - imagetag: dev +# dockerfile: Dockerfile.dev +# - imagetag: latest +# dockerfile: Dockerfile +# steps: +# - uses: actions/checkout@v4 +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v3 +# - name: Build the ${{ matrix.imagetag }} image +# uses: docker/build-push-action@v5 +# with: +# push: false +# load: true +# file: ${{ matrix.dockerfile }} +# tags: local-build:${{ matrix.imagetag }} +# - uses: serlo/configure-repositories/actions/setup-node@main +# - name: Run the ${{ matrix.imagetag }} docker image +# run: yarn docker:run local-build:${{ matrix.imagetag }} +# # TODO +# # - name: Test the docker container ${{ matrix.imagetag }} +# # run: yarn test:docker