-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporarily disable github workflows
- Loading branch information
1 parent
a4af905
commit 1530b63
Showing
2 changed files
with
63 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |