Skip to content

Commit

Permalink
added a docker-dev workflow and changed order of sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
naterfute committed Nov 17, 2024
1 parent 0d090af commit bfaefc8
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 4 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/docker-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Docker

on:
push:
branches:
- dev
release:
types:
- published

permissions:
packages: write

jobs:
push:
name: Push
runs-on: ubuntu-20.04
if: "!contains(github.ref, 'develop') || (!contains(github.event.head_commit.message, 'skip docker') && !contains(github.event.head_commit.message, 'docker skip'))"
steps:
- name: Code checkout
uses: actions/checkout@v3

- name: Docker metadata
id: docker_meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/pyrohost/pyrodactyl
flavor: |
latest=false
tags: |
type=ref,event=branch
- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: "github.event_name != 'pull_request'"
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Update version
if: "github.event_name == 'release' && github.event.action == 'published'"
env:
REF: ${{ github.event.release.tag_name }}
run: |
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:1}',/" config/app.php
- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
labels: ${{ steps.docker_meta.outputs.labels }}
tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
9 changes: 5 additions & 4 deletions resources/scripts/routers/DashboardRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,6 @@ export default () => {
<HugeIconsHome fill='currentColor' />
<p>Servers</p>
</NavLink>
<NavLink to={'/account'} end className='flex flex-row items-center' ref={NavigationSettings}>
<HugeIconsDashboardSettings fill='currentColor' />
<p>Settings</p>
</NavLink>
<NavLink to={'/account/api'} end className='flex flex-row items-center' ref={NavigationApi}>
<HugeIconsApi fill='currentColor' />
<p>Api Keys</p>
Expand All @@ -173,6 +169,11 @@ export default () => {
<HugeIconsSsh fill='currentColor' />
<p>SSH Keys</p>
</NavLink>
<NavLink to={'/account'} end className='flex flex-row items-center' ref={NavigationSettings}>
<HugeIconsDashboardSettings fill='currentColor' />
<p>Settings</p>
</NavLink>

</ul>

</MainSidebar>
Expand Down

0 comments on commit bfaefc8

Please sign in to comment.