Skip to content

chore(portaswitch): bump adapter minor version #123

chore(portaswitch): bump adapter minor version

chore(portaswitch): bump adapter minor version #123

Workflow file for this run

name: Create and publish WebTrit Adapter docker image
on:
push:
branches:
- main
tags:
- v*
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true
- name: Login to GitHub Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to PortaOne Container registry
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v3
with:
registry: registry.portaone.com
username: ${{ secrets.PORTAONE_REGISTRY_USERNAME }}
password: ${{ secrets.PORTAONE_REGISTRY_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
${{ startsWith(github.ref, 'refs/tags/v') && format('registry.portaone.com/{0}', github.repository) || '' }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}