chore(deps): update composer:latest docker digest to 706b731 #4373
Workflow file for this run
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
name: Build container | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- ".dockerignore" | |
- "wordpress/**" | |
env: | |
DOCKER_BUILDKIT: 1 | |
REPO_NAME: platform/wordpress | |
STAGING_ECR_REGISTRY: 729164266357.dkr.ecr.ca-central-1.amazonaws.com | |
jobs: | |
build-container: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Docker image tag | |
run: | | |
if [[ $GITHUB_EVENT_NAME == "release" ]]; then | |
echo "IMAGE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
else | |
echo "IMAGE_TAG=sha-${GITHUB_SHA}" >> $GITHUB_ENV | |
fi | |
- name: Add Composer auth credentials | |
run: | | |
cd wordpress | |
composer config github-oauth.github.com ${{ secrets.COMPOSER_GITHUB_TOKEN }} | |
composer config http-basic.my.yoast.com token ${{ secrets.COMPOSER_YOAST_TOKEN }} | |
- name: Build container | |
run: | | |
docker build \ | |
--build-arg git_sha="$GITHUB_SHA" \ | |
--build-arg WPML_USER_ID="${{ secrets.WPML_USER_ID }}" \ | |
--build-arg WPML_KEY="${{ secrets.WPML_KEY }}" \ | |
-t "${{ env.STAGING_ECR_REGISTRY }}/${{ env.REPO_NAME }}:${{ env.IMAGE_TAG }}" \ | |
-f ./wordpress/docker/Dockerfile . |