-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from magicpages/develop
v1.2.2
- Loading branch information
Showing
5 changed files
with
253 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,50 @@ | ||
name: Build and Push Docker image | ||
name: Docker Builds | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build-and-push: | ||
dev-build-and-push: | ||
if: github.ref == 'refs/heads/develop' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: docker/setup-qemu-action@v1 | ||
- uses: docker/setup-buildx-action@v1 | ||
- uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: magicpages/bunnycdn-perma-cache-purger:dev | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Extract version from tag | ||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV | ||
|
||
release-build-and-push: | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
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: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: magicpages/bunnycdn-perma-cache-purger:${{ env.VERSION }},magicpages/bunnycdn-perma-cache-purger:latest | ||
build-args: VERSION=${{ env.VERSION }} | ||
platforms: linux/amd64,linux/arm64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ghost-bunnycdn-middleware", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A middleware between a Ghost CMS instance and BunnyCDN, supposed to run in a Docker stack, alongside a Ghost container.", | ||
"main": "dist/index.js", | ||
"author": "Jannis Fedoruk-Betschki <[email protected]>", | ||
|
@@ -13,19 +13,21 @@ | |
"devDependencies": { | ||
"@types/express": "4.17.21", | ||
"@types/node": "20.14.8", | ||
"typescript": "5.5.2", | ||
"tsc-watch": "6.2.0" | ||
"tsc-watch": "6.2.0", | ||
"typescript": "5.5.2" | ||
}, | ||
"dependencies": { | ||
"body-parser": "1.20.2", | ||
"@types/multer": "^1.4.11", | ||
"body-parser": "^1.20.2", | ||
"dotenv": "16.4.5", | ||
"express": "4.19.2", | ||
"form-data": "^4.0.0", | ||
"multer": "^1.4.5-lts.1", | ||
"node-fetch": "3.3.2" | ||
}, | ||
"scripts": { | ||
"build": "tsc", | ||
"start": "node dist/index.js", | ||
"dev": "tsc-watch --noClear -p ./tsconfig.json --onSuccess \"node dist/index.js\"", | ||
"ship": "sh ./ship.sh" | ||
"dev": "tsc-watch --noClear -p ./tsconfig.json --onSuccess \"node dist/index.js\"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.