diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 38783b3..7ddcf18 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -55,6 +55,7 @@ jobs: run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin - name: Push image to GitHub Container Registry run: | + docker images IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') @@ -66,5 +67,18 @@ jobs: [ "$VERSION" == "$default-branch" ] && VERSION=latest echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION - docker tag $IMAGE_NAME $IMAGE_ID:$VERSION + docker tag fabric-es/$IMAGE_NAME $IMAGE_ID:$VERSION docker push $IMAGE_ID:$VERSION + - name: Cleanup artifacts + run: sudo rm -rf dev-net/artifacts + - name: Cleanup data volume + run: sudo rm -rf dev-net/volume + - name: Create Release + uses: docker://antonyurchenko/git-release:latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DRAFT_RELEASE: "false" + PRE_RELEASE: "true" + CHANGELOG_FILE: "none" + ALLOW_EMPTY_CHANGELOG: "true" + ALLOW_TAG_PREFIX: "true"