Merge pull request #3 from miutaku/develop #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |