Skip to content

Commit

Permalink
Test release.
Browse files Browse the repository at this point in the history
  • Loading branch information
antejavor committed Sep 16, 2024
1 parent 30d1aa3 commit 06c9ff2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:

- name: Check if specified version is already pushed
run: |
EXISTS=$(docker manifest inspect $DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:${{ github.event.inputs.version }} > /dev/null; echo $?)
EXISTS=$(docker manifest inspect $DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:0.0.1 > /dev/null; echo $?)
echo $EXISTS
if [[ ${EXISTS} -eq 0 ]]; then
echo 'The specified version has been already released to DockerHub.'
if [[ ${{ github.event.inputs.force_release }} == 'true' ]]; then
if [[ `true` == 'true' ]]; then
echo 'Forcing the release!'
else
echo 'Stopping the release!'
Expand All @@ -56,10 +56,11 @@ jobs:
context: .
push: true
tags: |
$DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:${{ github.event.inputs.version }}
$DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:0.0.1
$DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:latest
platforms: linux/amd64,linux/arm64

- name: Verify Docker image
run: |
docker run --rm $DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:${{ github.event.inputs.version }} uname -m
docker run --rm $DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:0.0.1 uname -m

0 comments on commit 06c9ff2

Please sign in to comment.