Skip to content

chore: Add schedule to docker workflows; don't run codeql on push. #283

chore: Add schedule to docker workflows; don't run codeql on push.

chore: Add schedule to docker workflows; don't run codeql on push. #283

Workflow file for this run

---
name: docker
# Run on push and once a week to keep the images from bitrotting and to
# identify issues while no commits are being pushed.
on:
push:
branches: [master]
schedule:
- cron: "52 2 * * 0"
jobs:
docker-haskell:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.haskell
tags: toxchat/toktok-stack:haskell
cache-from: type=registry,ref=toxchat/toktok-stack:haskell
cache-to: type=inline
docker-third_party:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.third_party
tags: toxchat/toktok-stack:latest-third_party
cache-from: type=registry,ref=toxchat/toktok-stack:latest-third_party
cache-to: type=inline
docker:
runs-on: ubuntu-latest
needs: [docker-third_party]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile
tags: toxchat/toktok-stack:latest
cache-from: type=registry,ref=toxchat/toktok-stack:latest
cache-to: type=inline
docker-release:
runs-on: ubuntu-latest
needs: [docker]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.release
tags: toxchat/toktok-stack:latest-release
cache-from: type=registry,ref=toxchat/toktok-stack:latest-release
cache-to: type=inline
docker-fastbuild:
runs-on: ubuntu-latest
needs: [docker]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.fastbuild
tags: toxchat/toktok-stack:latest-fastbuild
cache-from: type=registry,ref=toxchat/toktok-stack:latest-fastbuild
cache-to: type=inline
docker-dev:
runs-on: ubuntu-latest
needs: [docker-fastbuild]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.dev
tags: toxchat/toktok-stack:latest-dev
cache-from: type=registry,ref=toxchat/toktok-stack:latest-dev
cache-to: type=inline
docker-debug:
runs-on: ubuntu-latest
needs: [docker]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.debug
tags: toxchat/toktok-stack:latest-debug
cache-from: type=registry,ref=toxchat/toktok-stack:latest-debug
cache-to: type=inline
docker-asan:
runs-on: ubuntu-latest
needs: [docker]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.asan
tags: toxchat/toktok-stack:latest-asan
cache-from: type=registry,ref=toxchat/toktok-stack:latest-asan
cache-to: type=inline
docker-msan:
runs-on: ubuntu-latest
needs: [docker]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.msan
tags: toxchat/toktok-stack:latest-msan
cache-from: type=registry,ref=toxchat/toktok-stack:latest-msan
cache-to: type=inline
docker-tsan:
runs-on: ubuntu-latest
needs: [docker]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/built/src/Dockerfile.tsan
tags: toxchat/toktok-stack:latest-tsan
cache-from: type=registry,ref=toxchat/toktok-stack:latest-tsan
cache-to: type=inline
kythe-tables:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: tools/kythe/Dockerfile
tags: toxchat/kythe-tables:latest
cache-from: type=registry,ref=toxchat/kythe-tables:latest
cache-to: type=inline
kythe-serving:
runs-on: ubuntu-latest
needs: [kythe-tables]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
context: dockerfiles/kythe/serving
tags: toxchat/kythe-serving:latest
cache-from: type=registry,ref=toxchat/kythe-serving:latest
cache-to: type=inline