Skip to content

Merge pull request #8 from moriyalab/support_samurai #5

Merge pull request #8 from moriyalab/support_samurai

Merge pull request #8 from moriyalab/support_samurai #5

Workflow file for this run

name: Docker Build and Push to GHCR
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}:latest .
# docker build -t ghcr.io/${{ github.repository }}_dev:latest --target builder_image .
# docker build -t ghcr.io/${{ github.repository }}:latest --target release_image .
- name: Push Docker image
if: github.event_name == 'push'
run: |
docker push ghcr.io/${{ github.repository }}:latest
# docker push ghcr.io/${{ github.repository }}_dev:latest
# docker push ghcr.io/${{ github.repository }}:latest