Skip to content

PostRecord フィールドを実装 #16

PostRecord フィールドを実装

PostRecord フィールドを実装 #16

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- "**"
jobs:
build_and_push:
runs-on: ubuntu-latest
env:
IMAGE_NAME: docker-image
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/azuki774/mawinter-fe
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern=latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Docker Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./build/Dockerfile
push: ${{ startsWith( github.ref, 'refs/tags/v' ) }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}