Skip to content

Commit

Permalink
temporarily disable github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsTheGlidingSquirrel committed Jun 11, 2024
1 parent a4af905 commit 1530b63
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 63 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
68 changes: 34 additions & 34 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1530b63

Please sign in to comment.