Merge pull request #67 from DataDog/TRAIN-1429-python-logs #15
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: Publish release | |
# Only release on a new tag that is a version number. | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
publish_service_containers: | |
name: Publish all images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Setup Docker Buildx | |
uses: docker/[email protected] | |
- name: Login to ECR | |
id: login-ecr | |
uses: docker/[email protected] | |
with: | |
registry: public.ecr.aws | |
username: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Download, Tag, and Push Service Images | |
run: | | |
TAG=${GITHUB_REF/refs\/tags\//} | |
IMAGES=( | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/backend | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/discounts | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/ads | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/ads-java | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/attackbox | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/auth | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/nginx | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/frontend | |
${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/dbm | |
) | |
for i in "${IMAGES[@]}" | |
do | |
echo "$i" | |
docker pull "$i":latest | |
docker tag "$i":latest "$i":$TAG | |
docker push "$i":$TAG | |
done | |
echo "All done" | |