Skip to content

Hit v2 for metrics

Hit v2 for metrics #38

Workflow file for this run

name: Build staging
on:
push:
tags:
- 'staging*'
pull_request:
branches: [ master ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: hub.opensciencegrid.org/xdd/xdd_website
tags: |
type=sha,enable=true,priority=100,prefix=staging-,suffix=,format=short
type=ref,enable=true,priority=600,prefix=pr-,suffix=-{{sha}},event=pr
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to OSG DockerHub
uses: docker/login-action@v2
with:
registry: hub.opensciencegrid.org
username: ${{ secrets.OSG_HARBOR_USERNAME }}
password: ${{ secrets.OSG_HARBOR_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}