use secrets
@@ -19,15 +19,14 @@ jobs:
if [ $(echo $VERSION | grep "-") ]; then PRERELEASE=true; else PRERELEASE=false; fi
echo "::set-output name=version::${VERSION}"
echo "::set-output name=prerelease::${PRERELEASE}"
- - run: docker login -u $QUAY_USER -p $QUAY_PASSWORD quay.io
+ - run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USER }} --password-stdin quay.io
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.13
- run: make setup
- run: make build
- - run: make image IMAGE_TAG=${{ steps.check_version.outputs.version }}
- - run: make push IMAGE_TAG=${{ steps.check_version.outputs.version }}
+ - run: make image push IMAGE_PREFIX=${{ secrets.IMAGE_PREFIX }} IMAGE_TAG=${{ steps.check_version.outputs.version }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
