Skip to content

Merge pull request #1 from CIT-NakamuraLab/support-secondary #3

Merge pull request #1 from CIT-NakamuraLab/support-secondary

Merge pull request #1 from CIT-NakamuraLab/support-secondary #3

Workflow file for this run

name: Build Docker Image
on:
push:
branches-ignore:
- '**'
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate docker image metadata
uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/CIT-NakamuraLab/dns-mx-watchdog
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}