Skip to content

Commit

Permalink
generalize tag-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MajoBerger committed Feb 29, 2024
1 parent 2fd8ba0 commit a60f6ee
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Release

on:
push:
# Pattern matched against refs/tags
tags:
- '**'

env:
IMAGE_BASE_NAME: dataquest/dspace

jobs:
retag-BE-image:
Expand All @@ -18,11 +19,9 @@ jobs:

- name: retag image
run: |
echo attempting go pull dataquest/dspace:${{ github.sha }}
echo then will use ${{ github.ref_name }} as a tag
docker pull dataquest/dspace:${{ github.sha }}
docker tag dataquest/dspace:${{ github.sha }} dataquest/dspace:${{ github.ref_name }}
docker pull ${{ env.IMAGE_BASE_NAME }}:${{ github.sha }}
docker tag ${{ env.IMAGE_BASE_NAME }}:${{ github.sha }} ${{ env.IMAGE_BASE_NAME }}:${{ github.ref_name }}
- name: push image
run: docker push dataquest/dspace:${{ github.ref_name }}
run: docker push ${{ env.IMAGE_BASE_NAME }}:${{ github.ref_name }}

0 comments on commit a60f6ee

Please sign in to comment.