-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (63 loc) · 2.57 KB
/
Copy pathbuild.yml
File metadata and controls
80 lines (63 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Container builds
on:
push:
branches:
- main
paths:
- "dind-with-node/.devcontainer/devcontainer.json"
- "python-selenium/.devcontainer/devcontainer.json"
- "python-selenium/Dockerfile"
- "rails-dev/.devcontainer/devcontainer.json"
- "rails-dev/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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
- name: Log in to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
- name: Log in to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
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
build-and-push-rails-dev:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
- name: Log in to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Install devcontainer CLI
run: npm install -g @devcontainers/cli
- name: Build and push the Rails dev image
run: sh ./build-scripts/build_rails-dev.sh