Skip to content

Merge pull request #3 from miutaku/develop #5

Merge pull request #3 from miutaku/develop

Merge pull request #3 from miutaku/develop #5

---
name: rec-twitcasting batch docker push
on:
push:
branches:
- main
paths:
- 'batch/**'
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: create image meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.actor }}/batch-rec-twitcasting
tags: |
type=raw,value=latest
type=sha,prefix=,suffix=,format=short
- name: push container image
uses: docker/build-push-action@v5
with:
file: ./batch/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max