-
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.
- Loading branch information
1 parent
f8474bd
commit 969a4ec
Showing
12 changed files
with
198 additions
and
222 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,22 +1,26 @@ | ||
name: Update base image | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 2 * * *' # Daily at 02:00 | ||
|
||
env: | ||
IMAGE_NAME: delib/iadelib | ||
|
||
jobs: | ||
base: | ||
runs-on: ubuntu-latest | ||
runs-on: gha-runners-delib | ||
steps: | ||
- name: Build and publish base image to harbor | ||
uses: IMIO/buildout.pm/actions/harbor@master | ||
uses: IMIO/gha/[email protected] | ||
with: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
HARBOR_URL: ${{ secrets.HARBOR_URL }} | ||
DELIB_HARBOR_USERNAME: ${{ secrets.DELIB_HARBOR_USERNAME }} | ||
DELIB_HARBOR_PASSWORD: ${{ secrets.DELIB_HARBOR_PASSWORD }} | ||
tags: | | ||
imiobe/iadelib:base | ||
"${{ secrets.HARBOR_URL }}/delib/iadelib:base" | ||
dockerfile: ./docker/Dockerfile-base | ||
IMAGE_NAME: ${{ env.IMAGE_NAME }} | ||
IMAGE_TAGS: | | ||
"${{ secrets.HARBOR_URL }}/${{ env.IMAGE_NAME }}:base" | ||
REGISTRY_URL: ${{ secrets.HARBOR_URL }} | ||
REGISTRY_USERNAME: ${{ secrets.DELIB_HARBOR_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.DELIB_HARBOR_PASSWORD }} | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.DELIB_MATTERMOST_WEBHOOK_URL }} | ||
CONTEXT: '.' | ||
DOCKERFILE: './docker/Dockerfile-base' |
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,32 +1,47 @@ | ||
name: Update images | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
env: | ||
IMAGE_NAME: delib/iadelib | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
docker-latest: | ||
runs-on: gha-runners-delib | ||
steps: | ||
- name: Build latest | ||
uses: IMIO/buildout.pm/actions/harbor@master | ||
- name: Build and publish communes image to harbor | ||
uses: IMIO/gha/[email protected] | ||
with: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
HARBOR_URL: ${{ secrets.HARBOR_URL }} | ||
DELIB_HARBOR_USERNAME: ${{ secrets.DELIB_HARBOR_USERNAME }} | ||
DELIB_HARBOR_PASSWORD: ${{ secrets.DELIB_HARBOR_PASSWORD }} | ||
tags: | | ||
imiobe/iadelib:latest | ||
"${{ secrets.HARBOR_URL }}/delib/iadelib:latest" | ||
dockerfile: ./docker/Dockerfile-latest | ||
IMAGE_NAME: ${{ env.IMAGE_NAME }} | ||
IMAGE_TAGS: | | ||
"${{ secrets.HARBOR_URL }}/${{ env.IMAGE_NAME }}:latest" | ||
REGISTRY_URL: ${{ secrets.HARBOR_URL }} | ||
REGISTRY_USERNAME: ${{ secrets.DELIB_HARBOR_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.DELIB_HARBOR_PASSWORD }} | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.DELIB_MATTERMOST_WEBHOOK_URL }} | ||
CONTEXT: '.' | ||
DOCKERFILE: './docker/Dockerfile-latest' | ||
BUILD_ARGS: 'PROFILE=communes.cfg' | ||
|
||
docker-dev: | ||
runs-on: gha-runners-delib | ||
steps: | ||
- name: Build and publish dev image | ||
uses: IMIO/buildout.pm/actions/harbor@master | ||
uses: IMIO/gha/[email protected] | ||
with: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
HARBOR_URL: ${{ secrets.HARBOR_URL }} | ||
DELIB_HARBOR_USERNAME: ${{ secrets.DELIB_HARBOR_USERNAME }} | ||
DELIB_HARBOR_PASSWORD: ${{ secrets.DELIB_HARBOR_PASSWORD }} | ||
tags: imiobe/iadelib:dev | ||
dockerfile: ./docker/Dockerfile-dev | ||
profile: communes-dev | ||
IMAGE_NAME: ${{ env.IMAGE_NAME }} | ||
IMAGE_TAGS: | | ||
"${{ secrets.HARBOR_URL }}/${{ env.IMAGE_NAME }}:dev" | ||
REGISTRY_URL: ${{ secrets.HARBOR_URL }} | ||
REGISTRY_USERNAME: ${{ secrets.DELIB_HARBOR_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.DELIB_HARBOR_PASSWORD }} | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.DELIB_MATTERMOST_WEBHOOK_URL }} | ||
CONTEXT: '.' | ||
DOCKERFILE: './docker/Dockerfile-dev' | ||
BUILD_ARGS: 'PROFILE=communes-dev.cfg' |
Oops, something went wrong.