Skip to content

(INF-2680) Ceph Quota Reporting script: Selective cephfs mounts #39

(INF-2680) Ceph Quota Reporting script: Selective cephfs mounts

(INF-2680) Ceph Quota Reporting script: Selective cephfs mounts #39

name: Build and Push Quota Reporting Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to OSG Harbor
uses: docker/login-action@v3
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
with:
registry: hub.opensciencegrid.org/chtc-inf
username: ${{ secrets.OSG_HARBOR_CHTC_INF_USER }}
password: ${{ secrets.OSG_HARBOR_CHTC_INF_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./ceph-quota-usage
file: ./ceph-quota-usage/Dockerfile
push: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
tags: |
"hub.opensciencegrid.org/chtc-inf/quota_usage_reporting:latest"
"hub.opensciencegrid.org/chtc-inf/quota_usage_reporting:${{github.sha}}"