Skip to content

Commit 0968fc2

Browse files
committed
ci: configure docker build actions
1 parent 4a7fdbc commit 0968fc2

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/cron.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Rebuild Images
2+
on:
3+
schedule:
4+
- cron: '0 0 1 * *'
5+
workflow_dispatch:
6+
jobs:
7+
build-docker-images:
8+
if: github.ref == 'refs/heads/master'
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Build Docker images
13+
env:
14+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
15+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
16+
run: |
17+
curl "https://raw.githubusercontent.com/pelias/ci-tools/master/build-docker-images.sh" | bash -

.github/workflows/push.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Continuous Integration
2+
on: push
3+
jobs:
4+
build-docker-images:
5+
runs-on: ubuntu-22.04
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Build Docker images
9+
env:
10+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
11+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
12+
run: |
13+
curl "https://raw.githubusercontent.com/pelias/ci-tools/master/build-docker-images.sh" | bash -

0 commit comments

Comments
 (0)