Skip to content

Bump actions/checkout from 3 to 4 #23

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #23

name: Build and Push
on:
workflow_call:
inputs:
commit_hash:
required: false
type: string
workflow_dispatch:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
concurrency: build-and-push
steps:
- name: Checkout
uses: actions/checkout@v4
if: inputs.commit_hash == ''
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.commit_hash }}
if: inputs.commit_hash != ''
- name: Build and Deploy to Docker Hub
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: shanemcc/docker-omsa
tags: dev-latest
dockerfile: Dockerfile
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and Deploy to GHCR
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: docker-omsa
tags: dev-latest
dockerfile: Dockerfile
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Deploy to registry
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: public/docker-omsa
tags: dev-latest
dockerfile: Dockerfile
registry: registry.shanemcc.net
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}