Skip to content

Merge pull request #28 from azuki774/fix-latest-dir #32

Merge pull request #28 from azuki774/fix-latest-dir

Merge pull request #28 from azuki774/fix-latest-dir #32

Workflow file for this run

name: Build and Publish Docker
on:
push:
tags:
- v*
jobs:
build_and_push_sbi:
runs-on: ubuntu-latest
env:
IMAGE_NAME: bill-fetcher-sbi
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/bill-fetcher-sbi
# 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: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./build/sbi/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
build_and_push_money_forward:
runs-on: ubuntu-latest
env:
IMAGE_NAME: bill-fetcher-money-forward
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/bill-fetcher-money-forward
# 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@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./build/money-forward/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}