-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (65 loc) · 2.11 KB
/
drupal.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Drupal Image
# ============
#
# This workflow builds and registers an image of Apache HTTP with Drupal and the Web Strategy
# Team's customizations to Drupal in order to support the Planetary Data System's portal.
---
name: 🥀 Drupal Image
# Triggers
# --------
#
# Run on any push to the Drupal subdirectory, or via another workflow via the
# `workflow_dispatch` trigger.
on:
push:
branches:
- main
- develop
paths:
- 'drupal/**'
workflow_dispatch:
# Jobs
# ----
#
# What to do.
jobs:
drupal-image:
name: 🥀 Drupal Image
runs-on: ubuntu-latest
steps:
-
name: 📚 Repository Checkout
uses: actions/checkout@v3
with:
submodules: true
token: ${{secrets.WEB_STRATEGY_TEAM_PAT}}
fetch-depth: 0
-
name: 🏞️ AWS Identification
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{secrets.AWS_ACCESS_KEY_ID}}
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws-region: us-west-2
-
name: 🪪 ECR Identification
uses: docker/login-action@v2
with:
registry: ${{secrets.AWS_ACCOUNT_ID}}.dkr.ecr.us-west-2.amazonaws.com
-
name: 🎰 QEMU Multiple Machine Emulation
uses: docker/setup-qemu-action@v2
-
name: 🚢 Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: 🧱 Image Construction and Publication
uses: docker/build-push-action@v5
with:
context: .
file: drupal/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{secrets.AWS_ACCOUNT_ID}}.dkr.ecr.us-west-2.amazonaws.com/drupal-portal:latest
...
# -*- mode: YAML; tab-width: 4 -*-