Skip to content

Commit

Permalink
Merge pull request #212 from folio-org/release-prep
Browse files Browse the repository at this point in the history
chore(build): Comment out docker publish for guthub action
  • Loading branch information
ianibo authored Oct 1, 2023
2 parents c72a992 + b11aabc commit 95ff534
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ jobs:
echo "Parsed APP_VERSION to ${APP_VERSION}"
if [[ "${APP_VERSION}" =~ .*SNAPSHOT.* ]]; then
echo Publish as snapshot
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} $dockerRepo
docker build . --file Dockerfile --tag $dockerRepo/folioci/mod-remote-sync:${APP_VERSION}
docker build . --file Dockerfile --tag $dockerRepo/folioci/mod-remote-sync:snapshot-latest
docker push $dockerRepo/folioci/mod-remote-sync:${APP_VERSION}
docker push --all-tags $dockerRepo/folioci/mod-remote-sync
# docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} $dockerRepo
# docker build . --file Dockerfile --tag $dockerRepo/folioci/mod-remote-sync:${APP_VERSION}
# docker build . --file Dockerfile --tag $dockerRepo/folioci/mod-remote-sync:snapshot-latest
# docker push $dockerRepo/folioci/mod-remote-sync:${APP_VERSION}
# docker push --all-tags $dockerRepo/folioci/mod-remote-sync
else
echo Publish as release
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} $dockerRepo
docker build . --file Dockerfile --tag $dockerRepo/folioorg/mod-remote-sync:${APP_VERSION} --tag $dockerRepo/folioorg/mod-remote-sync:latest
docker push $dockerRepo/folioorg/mod-remote-sync:${APP_VERSION}
docker push $dockerRepo/folioorg/mod-remote-sync:latest
docker push --all-tags $dockerRepo/folioorg/mod-remote-sync
# docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} $dockerRepo
# docker build . --file Dockerfile --tag $dockerRepo/folioorg/mod-remote-sync:${APP_VERSION} --tag $dockerRepo/folioorg/mod-remote-sync:latest
# docker push $dockerRepo/folioorg/mod-remote-sync:${APP_VERSION}
# docker push $dockerRepo/folioorg/mod-remote-sync:latest
# docker push --all-tags $dockerRepo/folioorg/mod-remote-sync
fi
env:
dockerRepo: https://hub.docker.com
Expand Down

0 comments on commit 95ff534

Please sign in to comment.