build-environments/.forgejo/workflows/ci.yml
Fijxu 9c5ab11e3a
Some checks failed
Suyu Docker Image CI / build (linux-clang-format) (push) Successful in 1m43s
Suyu Docker Image CI / build (linux-fresh) (push) Failing after 5m23s
Suyu Docker Image CI / build (linux-mingw) (push) Failing after 3m5s
test123456
2024-03-22 16:02:04 -03:00

35 lines
1.1 KiB
YAML

name: 'Suyu Docker Image CI'
on:
# workflow_dispatch:
# inputs: {}
# schedule:
# - cron: '0 7 * * 0'
push:
branches: ["dev"]
pull_request:
branches: ["dev"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# image: ["linux-clang-format", "linux-fresh", "linux-mingw", "linux-transifex"]
image: ["linux-clang-format", "linux-fresh", "linux-mingw"]
steps:
- uses: https://github.com/actions/checkout@v2
- uses: https://github.com/docker/setup-buildx-action@v1
name: Setup Docker BuildX system
- name: Login to the Suyu Package Registry
uses: https://github.com/docker/login-action@v1
if: (github.ref == 'refs/heads/dev') && (github.repository == 'suyu/build-environments')
with:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.TOKEN }}
- uses: https://github.com/docker/build-push-action@v2
name: Build image
with:
push: ${{ (github.ref == 'refs/heads/dev') && (github.repository == 'suyu/build-environments') }}
context: ${{ matrix.image }}
tags: fijxu/build-environments:${{ matrix.image }}