Skip to content

Container builds

Container builds #23

Workflow file for this run

name: Container builds
on:
push:
paths:
- "dind-with-node/.devcontainer/devcontainer.json"
- "python-selenium/.devcontainer/devcontainer.json"
- "python-selenium/Dockerfile"
workflow_dispatch:
schedule:
- cron: '0 1 * * 3' # Run weekly at 8 PM Central Time
jobs:
build-and-push-main-builder:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Install devcontainer CLI
run: npm install -g @devcontainers/cli
- name: Build and push the main builder image
run: sh ./build-scripts/build_dind-with-node.sh
build-and-push-python-selenium:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Install devcontainer CLI
run: npm install -g @devcontainers/cli
- name: Build and push the Python and Selenium image
run: sh ./build-scripts/build_python-selenium.sh