Merge pull request #713 from tserong/wip-submodule-sqlite_orm #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build Environment | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Every sunday night midnight | |
push: | |
branches: | |
- "main" | |
# Only run this if the respective Dockerfiles have changed | |
paths: | |
- "tools/build/*" | |
- ".github/workflows/build-environment.yaml" | |
workflow_dispatch: # Allow this workflow to be triggered manually | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dockerfile: | |
- build-radosgw | |
- run-radosgw | |
- run-radosgw-tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Registry Login | |
uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
- name: Build image ${{ matrix.dockerfile }} | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
tags: | | |
quay.io/s3gw/${{ matrix.dockerfile }}:latest | |
quay.io/s3gw/${{ matrix.dockerfile }}:${{ github.sha }} | |
file: 'tools/build/Dockerfile.${{ matrix.dockerfile }}' | |
context: 'tools/build' |