Skip to content

Merge pull request #3 from azuki774/cf-import #5

Merge pull request #3 from azuki774/cf-import

Merge pull request #3 from azuki774/cf-import #5

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: myscrapers-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/myscrapers-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_mf:
runs-on: ubuntu-latest
env:
IMAGE_NAME: myscrapers-mf
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/myscrapers-mf
# 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/moneyforward/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}