Skip to content

Merge pull request #17 from azuki774/suica-apply #26

Merge pull request #17 from azuki774/suica-apply

Merge pull request #17 from azuki774/suica-apply #26

Workflow file for this run

name: Build and Publish
on:
push:
tags:
- v*
jobs:
build_and_push:
runs-on: ubuntu-latest
env:
IMAGE_NAME: docker-image
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/azuki774/mf-importer
# 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@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Docker Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./build/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build_and_push_maw:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- 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/mf-importer-maw
# 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: Make binary
run: make bin
- 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@v2
with:
context: .
file: ./build/Dockerfile-maw
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}