This commit is contained in:
Fynn Späker 2024-09-13 22:24:53 +02:00 committed by GitHub
commit cedc2ab05b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

36
.github/workflows/publish.yaml vendored Normal file
View 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