-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 1.08 KB
/
docker-build-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build docker image
on:
# Adding to prevent failing builds: `No event triggers defined in `on``
workflow_dispatch:
# Set a correct docker_image variable and then remove the comments from this block to enable automagic builds.
# push:
# branches:
# - develop
# - 'feature/**'
# - main
# release:
# types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build
id: build-action
uses: UN-OCHA/actions/drupal-docker-build@main
with:
aws_access_key_id: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
docker_registry_url: public.ecr.aws
docker_registry_path: /unocha/
docker_image: web-site
docker_username: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
docker_password: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }}
ecr_github_token: ${{ secrets.ECR_GITHUB_TOKEN }}
ecr_jenkins_token: ${{ secrets.JENKINS_ECR_TOKEN }}
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
slack_channel_name: ${{ vars.SLACK_CHANNEL }}