1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 18:42:31 +01:00

Add support for automated docker builds

This commit is contained in:
Dane Everitt 2020-11-14 19:56:43 -08:00
parent 7df3c1d013
commit 9ffb5d2995
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

37
.github/workflows/docker.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Publish Docker Image
on:
push:
branches:
- 'develop'
tags:
- 'v*'
jobs:
push_to_registry:
name: Push Image to Github Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Release Production Build
uses: docker/build-push-action@v2
if: contains(github.ref, 'develop') != true
env:
GITHUB_REF: ${{ github.ref }}
with:
push: true
tags: |
ghcr.io/pterodactyl/panel:latest
ghcr.io/pterodactyl/panel:${GITHUB_REF}
- name: Release Development Build
uses: docker/build-push-action@v2
if: contains(github.ref, 'develop')
with:
push: true
tags: |
ghcr.io/pterodactyl/panel:develop