Skip to content

Commit

Permalink
chore: update of the release CI flow to accommodate multi platform Do…
Browse files Browse the repository at this point in the history
…cker images
  • Loading branch information
StyleT committed Feb 3, 2022
1 parent 1ca46be commit fc83db5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,19 @@ jobs:
echo ::set-output name=docker_tags::$DOCKER_TAGS
echo ::set-output name=tag::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Pull & tag images for release
- name: Install regctl
run: |
docker pull namecheap/ilc:${GITHUB_SHA:0:7}
docker pull namecheap/ilc_registry:${GITHUB_SHA:0:7}
curl -L https://github.com/regclient/regclient/releases/download/v0.3.10/regctl-linux-amd64 > ./regctl
chmod 755 ./regctl
- name: Push images
run: |
TAGS="${{ steps.tags.outputs.docker_tags }}"
for i in ${TAGS//,/ }
do
docker tag namecheap/ilc:${GITHUB_SHA:0:7} namecheap/ilc:$i
docker push namecheap/ilc:$i
docker tag namecheap/ilc_registry:${GITHUB_SHA:0:7} namecheap/ilc_registry:$i
docker push namecheap/ilc_registry:$i
./regctl image copy namecheap/ilc:${GITHUB_SHA:0:7} namecheap/ilc:$i
./regctl image copy namecheap/ilc_registry:${GITHUB_SHA:0:7} namecheap/ilc_registry:$i
done
- name: Get release description
Expand Down

0 comments on commit fc83db5

Please sign in to comment.