jandapress/.github/workflows/docker.yml

21 行
561 B
YAML
Raw 通常表示 履歴

2022-12-11 02:56:57 +09:00
name: Docker
2022-12-11 02:12:14 +09:00
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
2022-12-11 02:56:57 +09:00
2022-12-11 02:12:14 +09:00
jobs:
2022-12-11 02:56:57 +09:00
build:
2022-12-11 02:12:14 +09:00
runs-on: ubuntu-latest
steps:
2022-12-11 02:56:57 +09:00
- uses: actions/checkout@v2
- name: Log into GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/sinkaroid/jandapress:latest
- name: Push the Docker image
run: docker push ghcr.io/sinkaroid/jandapress:latest
2022-12-11 02:12:14 +09:00