Skip to content

Build Latest SAML

Build Latest SAML #1

name: Build Latest SAML
on:
workflow_run:
workflows: ["Test"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
steps:
- uses: actions/checkout@v2
- name: Checkout another repository
uses: actions/checkout@v2
with:
repository: salopensource/sal-saml
path: saml
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and Push Docker image
uses: docker/[email protected]
with:
context: .
file: saml/Dockerfile.pristine
push: true
tags: ghcr.io/salopensource/sal-saml:latest