Skip to content

iaa-0.1

iaa-0.1 #6

Workflow file for this run

name: Publish Docker
on:
workflow_dispatch:
release:
types: [ "published" ]
permissions:
contents: read
packages: write
env:
REGISTRY_IMAGE: ghcr.io/iaa-inc/oxidized
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/#-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for the Docker image
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}