-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (34 loc) · 1016 Bytes
/
build-push.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
name: Build and Push
on:
push:
branches:
- main
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
inputs:
additional_packages:
required: false
type: string
jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add manual packages
if: ${{ github.event.inputs.additional_packages }}
run: |
echo "RUN dnf install -y ${{ github.event.inputs.additional_packages }} && dnf clean all" >> Dockerfile.stream9
echo "RUN dnf install -y ${{ github.event.inputs.additional_packages }} && dnf clean all" >> Dockerfile.alamalinux9
- name: Build image
run: docker compose build
- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Push image
run: docker compose push