forked from italia/design-comuni-plone-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #124 from RedTurtle/main
Release v7.0.0
- Loading branch information
Showing
419 changed files
with
6,780 additions
and
8,383 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 |
---|---|---|
|
@@ -19,5 +19,3 @@ node_modules | |
npm-debug.log* | ||
omelette | ||
.vscode/ | ||
.yarn/ | ||
.yarnrc |
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
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 |
---|---|---|
|
@@ -22,18 +22,12 @@ jobs: | |
# with: | ||
# ref: develop | ||
|
||
# - name: Set up QEMU | ||
# uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
|
@@ -43,14 +37,13 @@ jobs: | |
- name: Build and push Docker images | ||
uses: docker/build-push-action@v3 | ||
with: | ||
# List of tags | ||
context: . | ||
tags: redturtletech/io-comune-base:develop | ||
pull: true | ||
# Push is a shorthand for --output=type=registry | ||
push: true | ||
builder: ${{ steps.buildx.outputs.name }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
cache-from: type=registry,ref=redturtletech/io-comune-base:develop | ||
cache-to: type=inline | ||
# platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Deploy to rancher | ||
uses: redturtle/[email protected] | ||
|
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,44 @@ | ||
name: Docker build for latest main version | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build_main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: pull request | ||
if: github.event_name == 'release' && github.event.action == 'published' || github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push Docker images | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
tags: redturtletech/io-comune-base:main | ||
pull: true | ||
push: true | ||
cache-from: type=registry,ref=redturtletech/io-comune-base:main | ||
cache-to: type=inline | ||
|
||
- name: Deploy to rancher | ||
uses: redturtle/[email protected] | ||
with: | ||
host: ${{ secrets.RANCHER_HOST }} | ||
api-username: ${{ secrets.RANCHER_API_USERNAME }} | ||
api-password: ${{ secrets.RANCHER_API_PASSWORD }} | ||
cluster-id: ${{ secrets.RANCHER_CLUSTER_ID }} | ||
project-id: ${{ secrets.RANCHER_PROJECT_ID }} | ||
namespace: ${{ secrets.RANCHER_NAMESPACE }} | ||
workload: ${{ secrets.RANCHER_WORKLOAD }} | ||
image: redturtletech/io-comune-base:main | ||
slack-hook-url: ${{ secrets.RANCHER_SLACK_HOOK_URL }} |
Oops, something went wrong.