Add display of an env var for testing #4
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
# 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 -*- |