Skip to content

Delete inst/images/ow-icon.png #16

Delete inst/images/ow-icon.png

Delete inst/images/ow-icon.png #16

Workflow file for this run

name: Build Docker
on:
push:
branches: [ "master", "main", "develop" ]
pull_request:
branches: [ "master", "main", "develop" ]
workflow_dispatch:
env:
GCR_REGISTRY: gcr.io
ACR_REGISTRY: acr.io
DH_REGISTRY: dockerhub.io
GH_REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Docker BuildX
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=moby/buildkit:master
- name: Login Registry - ${{env.GH_REGISTRY}}
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.GH_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.GH_REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}