Skip to content

Commit

Permalink
Merge branch 'dtq-dev' into internal/update-version-d
Browse files Browse the repository at this point in the history
  • Loading branch information
MajoBerger committed Feb 29, 2024
2 parents 73e40ac + d287a7a commit 2fd8ba0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/reusable-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ env:
# For a new tag, copy that tag name as the tag for Docker image.
IMAGE_TAGS: |
type=raw,value=dspace-7_x,enable=${{ github.ref_name == github.event.repository.default_branch }}
type=raw,value=${{ github.sha }}
type=ref,event=branch,enable=${{ github.ref_name != github.event.repository.default_branch }}
type=ref,event=tag
# Define default tag "flavor" for docker/metadata-action per
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

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


jobs:
retag-BE-image:
steps:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- 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 }}
- name: push image
run: docker push dataquest/dspace:${{ github.ref_name }}

0 comments on commit 2fd8ba0

Please sign in to comment.