25
.github/workflows/deploy.yml
vendored
25
.github/workflows/deploy.yml
vendored
@@ -4,16 +4,35 @@ on:
|
|||||||
branches: main
|
branches: main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
docker-dh:
|
||||||
|
name: Push to Docker Hub
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Login to DockerHub Registry
|
- name: Login to DockerHub Registry
|
||||||
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
||||||
- name: Build image
|
- name: Build image for Docker Hub
|
||||||
run: docker build . --file Dockerfile --tag luketainton/fhed:latest
|
run: docker build . --file Dockerfile --tag luketainton/fhed:latest
|
||||||
- name: Push image
|
- name: Push image to Docker Hub
|
||||||
run: docker push luketainton/fhed:latest
|
run: docker push luketainton/fhed:latest
|
||||||
|
|
||||||
|
docker-ghr:
|
||||||
|
name: Push to GitHub Package Registry
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Login to DockerHub Registry
|
||||||
|
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u luketainton --password-stdin
|
||||||
|
- name: Build image for GitHub Package Registry
|
||||||
|
run: docker build . --file Dockerfile --tag docker.pkg.github.com/luketainton/fhed/fhed:latest
|
||||||
|
- name: Push image to GitHub Package Registry
|
||||||
|
run: docker push docker.pkg.github.com/luketainton/fhed/fhed:latest
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
name: Update Docker image on server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [docker-dh]
|
||||||
|
steps:
|
||||||
- name: Update image on server
|
- name: Update image on server
|
||||||
uses: garygrossgarten/github-action-ssh@release
|
uses: garygrossgarten/github-action-ssh@release
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -63,4 +63,3 @@ code {
|
|||||||
footer p {
|
footer p {
|
||||||
margin-bottom: .25rem;
|
margin-bottom: .25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
<?php if (is_signed_in()) { ?>
|
<?php if (is_signed_in()) { ?>
|
||||||
<section>
|
<section>
|
||||||
<div class="card mx-auto" style="width: 80%;">
|
<div class="card mx-auto" style="width: 80%;margin-bottom: 50px;">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<span class="mdi mdi-ticket-outline"></span> My Open Requests
|
<span class="mdi mdi-ticket-outline"></span> My Open Requests
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<div class="card mx-auto" style="width: 50%;">
|
<div class="card mx-auto" style="width: 50%;margin-bottom: 50px;">
|
||||||
<form style="padding: 2%" action="/new" method="post" enctype="multipart/form-data">
|
<form style="padding: 2%" action="/new" method="post" enctype="multipart/form-data">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="title">Title: </label>
|
<label for="title">Title: </label>
|
||||||
|
|||||||
Reference in New Issue
Block a user