Skip to content

build release docker image #2

build release docker image

build release docker image #2

name: build release docker image
on:
workflow_dispatch:
jobs:
build:
name: build-docker-image-dev
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
id: buildx
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: registry.cennso.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
registry.cennso.com/cennso/ipsec-prometheus-exporter
tags: |
type=semver,pattern={{raw}}
flavor: |
latest=false
prefix=
suffix=
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: |
${{ steps.meta.outputs.tags }}