Skip to content

Merge pull request #91 from DataDog/arosenkranz/set-global-env #22

Merge pull request #91 from DataDog/arosenkranz/set-global-env

Merge pull request #91 from DataDog/arosenkranz/set-global-env #22

Workflow file for this run

name: Publish release
permissions: {}
# 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
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
id: login-ghcr
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download, Tag, and Push Service Images
run: |
TAG=${GITHUB_REF/refs\/tags\//}
IMAGES=(
ghcr.io/datadog/storedog/backend
ghcr.io/datadog/storedog/discounts
ghcr.io/datadog/storedog/ads
ghcr.io/datadog/storedog/ads-java
ghcr.io/datadog/storedog/nginx
ghcr.io/datadog/storedog/frontend
ghcr.io/datadog/storedog/dbm
ghcr.io/datadog/storedog/postgres
ghcr.io/datadog/storedog/puppeteer
)
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"