run: |
docker run --rm -e RUBY_ONLY=1 -e USE_TURBO=1 -e SKIP_PLUGINS=1 -e SKIP_LINT=1 discourse/discourse_test:build
- name: tag images
+ id: tag-images
run: |
TAG=`date +%Y%m%d-%H%M`
+ echo "::set-output name=tag::$(echo $TAG)"
docker tag discourse/base:build discourse/base:2.0.$TAG-slim
docker tag discourse/base:build discourse/base:slim
docker tag discourse/base:build discourse/base:2.0.$TAG
env:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
run: |
+ TAG=${{ steps.tag-images.outputs.tag }}
docker login --username discoursebuild --password $DOCKERHUB_PASSWORD
docker push discourse/base:2.0.$TAG-slim
docker push discourse/base:slim