Skip to content

Merge pull request #2 from jeff-takaki/set-ouput-fix #4

Merge pull request #2 from jeff-takaki/set-ouput-fix

Merge pull request #2 from jeff-takaki/set-ouput-fix #4

name: Build and Push Docker Image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
if: startsWith(github.repository, 'osg-htc/')
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
ref: master # Needed or it will checkout the wrong commit
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Log in to OSG Harbor
uses: docker/[email protected]
with:
registry: hub.opensciencegrid.org
username: ${{ secrets.OSG_HARBOR_ROBOT_USER }}
password: ${{ secrets.OSG_HARBOR_ROBOT_PASSWORD }}
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: "hub.opensciencegrid.org/opensciencegrid/osg-portal-documentation:latest"