-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/staging' into chore/merge-master…
…-to-staging-a17s21
- Loading branch information
Showing
577 changed files
with
13,164 additions
and
12,110 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,2 +1,4 @@ | ||
# Treat SVGs like images, and not like text. | ||
*.svg binary | ||
*.svg binary | ||
Dockerfile text eol=lf | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Prune images | ||
on: | ||
workflow_run: | ||
workflows: [Docker-build] | ||
types: [completed] | ||
|
||
jobs: | ||
prune: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: prune | ||
uses: vlaurin/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
organization: keymanapp | ||
container: help-keyman-com | ||
dry-run: false | ||
keep-younger-than: 7 | ||
keep-last: 3 | ||
prune-tags-regexes: ^.*$ | ||
prune-untagged: true |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Docker-build | ||
on: | ||
push: | ||
branches: [ "master", "staging" ] | ||
paths: | ||
- Dockerfile | ||
- composer.* | ||
- resources/** | ||
- .github/** | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: keymanapp/help-keyman-com | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Workaround: https://github.com/docker/build-push-action/issues/461 | ||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
# Login against a Docker registry except on PR | ||
- name: Log into registry ${{ env.REGISTRY }} | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Extract metadata (tags, labels) for Docker | ||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=raw,value={{branch}} | ||
type=raw,value=latest | ||
labels: | | ||
org.opencontainers.image.description=PHP api runtime | ||
# Build and push Docker image with Buildx (don't push on PR) | ||
- name: Build and push Docker image | ||
id: build-and-push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
**/.DS_Store | ||
.idea/ | ||
cdn/deploy | ||
vendor/ | ||
vendor* | ||
.vscode/ | ||
node_modules/ |
Oops, something went wrong.