Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c00037d3f6 | |||
|
|
c6a578b5bb | ||
|
|
f7ce7cd401 | ||
| 18cdccb63e | |||
| bb3143c7c8 | |||
| 80679499e1 |
39
.github-archive/.github/workflows/build.yml
vendored
Normal file
39
.github-archive/.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Deploy
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-on-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
ver: ${{ steps.release.outputs.version }}
|
||||||
|
tag: ${{ steps.release.outputs.tag_name }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
steps:
|
||||||
|
- name: Get Release
|
||||||
|
id: release
|
||||||
|
uses: rymndhng/release-on-push-action@master
|
||||||
|
with:
|
||||||
|
bump_version_scheme: patch
|
||||||
|
- name: Check Release Output
|
||||||
|
id: rop-check
|
||||||
|
run: |
|
||||||
|
echo "Got tag name ${{ steps.release.outputs.tag_name }}"
|
||||||
|
echo "Got release version ${{ steps.release.outputs.version }}"
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: GitHub Container Registry
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [prepare-data]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
run: echo ${{ secrets.PAT }} | docker login ghcr.io -u luketainton --password-stdin
|
||||||
|
- name: Build image for GitHub Container Registry
|
||||||
|
run: docker build . --file Dockerfile --tag ghcr.io/luketainton/fhed:${{ needs.release-on-push.outputs.ver }} --tag ghcr.io/luketainton/fhed:latest
|
||||||
|
- name: Push image to GitHub Container Registry
|
||||||
|
run: |
|
||||||
|
docker push ghcr.io/luketainton/fhed:latest
|
||||||
|
docker push ghcr.io/luketainton/fhed:${{ needs.release-on-push.outputs.ver }}
|
||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v4
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-issue-message: 'This issue has been marked as stale due to inactivity. If this issue is still ongoing, please leave a comment.'
|
stale-issue-message: 'This issue has been marked as stale due to inactivity. If this issue is still ongoing, please leave a comment.'
|
||||||
67
.github/workflows/deploy.yml
vendored
67
.github/workflows/deploy.yml
vendored
@@ -1,67 +0,0 @@
|
|||||||
name: Deploy
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release-on-push:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
ver: ${{ steps.release.outputs.version }}
|
|
||||||
tag: ${{ steps.release.outputs.tag_name }}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
steps:
|
|
||||||
- id: release
|
|
||||||
uses: rymndhng/release-on-push-action@master
|
|
||||||
with:
|
|
||||||
bump_version_scheme: patch
|
|
||||||
|
|
||||||
- name: Check Output Parameters
|
|
||||||
run: |
|
|
||||||
echo "Got tag name ${{ steps.release.outputs.tag_name }}"
|
|
||||||
echo "Got release version ${{ steps.release.outputs.version }}"
|
|
||||||
|
|
||||||
docker-dh:
|
|
||||||
name: Push to Docker Hub
|
|
||||||
needs: [release-on-push]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Login to DockerHub Registry
|
|
||||||
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
|
||||||
- name: Build image for Docker Hub
|
|
||||||
run: docker build . --file Dockerfile --build-arg VERSION=${{ needs.release-on-push.outputs.ver }} --tag luketainton/fhed:${{ needs.release-on-push.outputs.tag }} --tag luketainton/fhed:latest
|
|
||||||
- name: Push image to Docker Hub
|
|
||||||
run: |
|
|
||||||
docker push luketainton/fhed:${{ needs.release-on-push.outputs.tag }} &&
|
|
||||||
docker push luketainton/fhed:latest
|
|
||||||
|
|
||||||
docker-ghr:
|
|
||||||
name: Push to GitHub Package Registry
|
|
||||||
needs: [release-on-push]
|
|
||||||
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 --build-arg VERSION=${{ needs.release-on-push.outputs.ver }} --tag docker.pkg.github.com/luketainton/fhed/fhed:latest --tag docker.pkg.github.com/luketainton/fhed/fhed:${{ needs.release-on-push.outputs.tag }}
|
|
||||||
- name: Push image to GitHub Package Registry
|
|
||||||
run: |
|
|
||||||
docker push docker.pkg.github.com/luketainton/fhed/fhed:${{ needs.release-on-push.outputs.tag }} &&
|
|
||||||
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
|
|
||||||
uses: garygrossgarten/github-action-ssh@release
|
|
||||||
with:
|
|
||||||
command: cd /docker/active/fhed && docker-compose pull && docker-compose up -d
|
|
||||||
host: ${{ secrets.SSH_HOST }}
|
|
||||||
port: ${{ secrets.SSH_PORT }}
|
|
||||||
username: ${{ secrets.SSH_USERNAME }}
|
|
||||||
privateKey: ${{ secrets.SSH_SSHKEY }}
|
|
||||||
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
image: docker:19.03.12
|
||||||
|
services:
|
||||||
|
- docker:19.03.12-dind
|
||||||
|
variables:
|
||||||
|
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
||||||
|
script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
- docker build -t $CI_REGISTRY_IMAGE:latest -t $IMAGE_TAG .
|
||||||
|
- docker build -t $IMAGE_TAG -t $CI_REGISTRY_IMAGE:latest .
|
||||||
|
- docker push $IMAGE_TAG
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:latest
|
||||||
@@ -4,6 +4,7 @@ RUN composer --working-dir=/srv install
|
|||||||
|
|
||||||
FROM php:apache
|
FROM php:apache
|
||||||
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/luketainton/fhed"
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
RUN docker-php-ext-install pdo_mysql && a2enmod rewrite remoteip
|
RUN docker-php-ext-install pdo_mysql && a2enmod rewrite remoteip
|
||||||
COPY vhost.conf /etc/apache2/sites-enabled/000-default.conf
|
COPY vhost.conf /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
|||||||
27
app/composer.lock
generated
27
app/composer.lock
generated
@@ -63,12 +63,12 @@
|
|||||||
"version": "v1.4.1",
|
"version": "v1.4.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/clue/php-stream-filter.git",
|
"url": "https://github.com/clue/stream-filter.git",
|
||||||
"reference": "5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71"
|
"reference": "5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/clue/php-stream-filter/zipball/5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71",
|
"url": "https://api.github.com/repos/clue/stream-filter/zipball/5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71",
|
||||||
"reference": "5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71",
|
"reference": "5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
@@ -108,6 +108,16 @@
|
|||||||
"stream_filter_append",
|
"stream_filter_append",
|
||||||
"stream_filter_register"
|
"stream_filter_register"
|
||||||
],
|
],
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"url": "https://clue.engineering/support",
|
||||||
|
"type": "custom"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://github.com/clue",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
],
|
||||||
"time": "2019-04-09T12:31:48+00:00"
|
"time": "2019-04-09T12:31:48+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -983,16 +993,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpseclib/phpseclib",
|
"name": "phpseclib/phpseclib",
|
||||||
"version": "2.0.28",
|
"version": "2.0.31",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpseclib/phpseclib.git",
|
"url": "https://github.com/phpseclib/phpseclib.git",
|
||||||
"reference": "d1ca58cf33cb21046d702ae3a7b14fdacd9f3260"
|
"reference": "233a920cb38636a43b18d428f9a8db1f0a1a08f4"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/d1ca58cf33cb21046d702ae3a7b14fdacd9f3260",
|
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/233a920cb38636a43b18d428f9a8db1f0a1a08f4",
|
||||||
"reference": "d1ca58cf33cb21046d702ae3a7b14fdacd9f3260",
|
"reference": "233a920cb38636a43b18d428f9a8db1f0a1a08f4",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1000,8 +1010,7 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phing/phing": "~2.7",
|
"phing/phing": "~2.7",
|
||||||
"phpunit/phpunit": "^4.8.35|^5.7|^6.0",
|
"phpunit/phpunit": "^4.8.35|^5.7|^6.0|^9.4",
|
||||||
"sami/sami": "~2.0",
|
|
||||||
"squizlabs/php_codesniffer": "~2.0"
|
"squizlabs/php_codesniffer": "~2.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
@@ -1085,7 +1094,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-07-08T09:08:33+00:00"
|
"time": "2021-04-06T13:56:45+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/container",
|
"name": "psr/container",
|
||||||
|
|||||||
Reference in New Issue
Block a user