Skip to content

Merge pull request #386 from axone-protocol/dependabot/npm_and_yarn/t… #296

Merge pull request #386 from axone-protocol/dependabot/npm_and_yarn/t…

Merge pull request #386 from axone-protocol/dependabot/npm_and_yarn/t… #296

Workflow file for this run

name: Publish
on:
push:
branches:
- main
tags:
- 'v*'
workflow_dispatch:
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true
jobs:
publish-docker-images:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Extract metadata (tags, labels) for Docker
id: docker_metadata
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }},value=nightly
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
labels: |
org.opencontainers.image.vendor=OKP4
- name: Login to OKP4 Docker registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ vars.DOCKER_GHCR_USERNAME }}
password: ${{ secrets.OPS_TOKEN }}
- name: Build and publish image(s)
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}