Skip to content

1.10.2

1.10.2 #34

Workflow file for this run

name: Tag Latest Release Image
on:
release:
types: [ released ]
env:
TAG: ${{ github.event.release.tag_name }}
jobs:
build:
runs-on: ubuntu-latest
environment: production
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log into Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Clone latest repository
uses: actions/checkout@v2
- name: Tag latest catalog-solr release in Github Container Registry
env:
UNSTABLE_IMAGE_ID: ghcr.io/mlibrary/catalog-solr-unstable
PROD_IMAGE_ID: ghcr.io/mlibrary/catalog-solr
run: |
docker pull $UNSTABLE_IMAGE_ID:${{ github.sha }}
docker tag $UNSTABLE_IMAGE_ID:${{ github.sha }} $PROD_IMAGE_ID:${{ env.TAG }}
docker tag $UNSTABLE_IMAGE_ID:${{ github.sha }} $PROD_IMAGE_ID:latest
docker push $PROD_IMAGE_ID:${{ env.TAG }}
docker push $PROD_IMAGE_ID:latest
- name: Tag latest catalog-indexer release in Github Container Registry
env:
UNSTABLE_IMAGE_ID: ghcr.io/mlibrary/catalog-indexer-unstable
PROD_IMAGE_ID: ghcr.io/mlibrary/catalog-indexer
run: |
docker pull $UNSTABLE_IMAGE_ID:${{ github.sha }}
docker tag $UNSTABLE_IMAGE_ID:${{ github.sha }} $PROD_IMAGE_ID:${{ env.TAG }}
docker tag $UNSTABLE_IMAGE_ID:${{ github.sha }} $PROD_IMAGE_ID:latest
docker push $PROD_IMAGE_ID:${{ env.TAG }}
docker push $PROD_IMAGE_ID:latest