mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Merge 5183a77f8a into f81a4ca008
This commit is contained in:
commit
cedc2ab05b
36
.github/workflows/publish.yaml
vendored
Normal file
36
.github/workflows/publish.yaml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
name: Publish
|
||||
|
||||
"on":
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: getgrav/docker-grav
|
||||
|
||||
- name: Setup docker
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to docker registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Publish image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/grav:latest
|
||||
Loading…
Reference in New Issue
Block a user