👷 docker: github registry with actions
This commit is contained in:
23
.github/workflows/docker.yml
vendored
Normal file
23
.github/workflows/docker.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
paths-ignore:
|
||||
- ".gitignore"
|
||||
- "*.md"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Log into registry
|
||||
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
|
||||
|
||||
- name: Build and push image
|
||||
run: |
|
||||
docker build -t ghcr.io/${{ github.repository_owner }}/next-terminal -f Dockerfile .
|
||||
docker push ghcr.io/${{ github.repository_owner }}/next-terminal
|
Reference in New Issue
Block a user