jandapress/.github/workflows/docker.yml

23 行
612 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
2022-12-11 03:11:07 +09:00
run: |
docker build . -t ghcr.io/sinkaroid/jandapress:${{ steps.tags.outputs.name }}
2022-12-11 02:56:57 +09:00
- name: Push the Docker image
2022-12-11 03:11:07 +09:00
run: |
docker push ghcr.io/sinkaroid/jandapress:${{ steps.tags.outputs.name }}
2022-12-11 02:12:14 +09:00