-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (31 loc) · 973 Bytes
/
build-builder.yaml
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
---
name: Build Builder
on:
schedule:
- cron: '0 0 * * 0' # build every sunday night
workflow_dispatch: # Allow this workflow to be triggered manually
env:
IMAGE_NAME_BUILDER: chatterbox-ubuntu-builder
jobs:
build-and-push-builder:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push builder-image
uses: docker/build-push-action@v3
with:
file: 'scripts/Dockerfile.ubuntu.builder'
context: scripts
push: true
tags: ghcr.io/${{ github.actor }}/${{ env.IMAGE_NAME_BUILDER }}:latest
labels: ${{ env.IMAGE_NAME_BUILDER }}