build-environments/.forgejo/workflows/ci.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2024-03-22 18:31:59 +01:00
name: 'Suyu Docker Image CI'
2024-03-23 19:50:14 +01:00
2024-03-22 18:31:59 +01:00
on:
2024-03-23 19:50:14 +01:00
# workflow_dispatch:
# inputs: {}
schedule:
- cron: '0 7 * * 0'
2024-03-22 18:31:59 +01:00
push:
branches: ["*"]
2024-03-22 18:31:59 +01:00
pull_request:
branches: ["*"]
2024-03-22 18:31:59 +01:00
jobs:
build:
2024-03-24 05:29:45 +01:00
runs-on: docker-build
2024-03-22 18:31:59 +01:00
strategy:
matrix:
# image: ["linux-clang-format", "linux-fresh", "linux-mingw", "linux-transifex"]
2024-03-25 16:23:18 +01:00
image: ["android", "linux-clang-format", "linux-fresh", "linux-mingw"]
2024-03-22 18:31:59 +01:00
steps:
2024-03-22 18:52:49 +01:00
- uses: https://github.com/actions/checkout@v2
- uses: https://github.com/docker/setup-buildx-action@v1
2024-03-22 18:31:59 +01:00
name: Setup Docker BuildX system
2024-03-23 19:50:14 +01:00
- name: Login to Docker Container Registry
2024-03-22 18:52:49 +01:00
uses: https://github.com/docker/login-action@v1
2024-03-22 18:31:59 +01:00
if: (github.ref == 'refs/heads/dev') && (github.repository == 'suyu/build-environments')
with:
2024-03-22 18:54:29 +01:00
username: ${{ secrets.USERNAME }}
password: ${{ secrets.TOKEN }}
2024-03-22 18:52:49 +01:00
- uses: https://github.com/docker/build-push-action@v2
2024-03-23 19:50:14 +01:00
name: Build images
2024-03-22 18:31:59 +01:00
with:
push: ${{ (github.ref == 'refs/heads/dev') && (github.repository == 'suyu/build-environments') }}
context: ${{ matrix.image }}
2024-03-22 20:02:04 +01:00
tags: fijxu/build-environments:${{ matrix.image }}