This commit is contained in:
hay-kot 2021-06-11 22:40:21 -08:00
parent 5baaf07405
commit 870f322efd
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,29 @@
name: Docker Build Dev Docs
on:
push:
branches:
- dev
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
uses: docker/build-push-action@v2
with:
push: true
tags: |
ghrc.io/${{ github.repository }}/dev-docs:latest

View File

@ -18,8 +18,8 @@ jobs:
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghrc.io
username: ${{ github.actor }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
uses: docker/build-push-action@v2