Update docker-build.yml

pull/24/head
Cullen Watson 2023-08-28 09:01:54 -05:00 committed by GitHub
parent ec76aac873
commit 5f532dbe3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 34 deletions

View File

@ -33,37 +33,3 @@ jobs:
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ env.REPO_NAME_LOWER }}/jobspy_api:latest
- name: Fetch Latest Release Tag
id: latest_version
run: |
LATEST_TAG=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" | jq -r .tag_name)
echo "::set-output name=version::${LATEST_TAG}"
- name: Set Release Tag Name
run: |
CURRENT_VERSION=${{ steps.latest_version.outputs.version }}
if [[ $CURRENT_VERSION == v0.*.0 ]]; then
MINOR_VERSION=$(echo $CURRENT_VERSION | cut -d. -f2)
NEW_MINOR_VERSION=$((MINOR_VERSION + 1))
RELEASE_TAG="v0.${NEW_MINOR_VERSION}.0"
else
RELEASE_TAG="v0.1.0"
fi
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_TAG }}
release_name: Docker ${{ env.RELEASE_TAG }}
draft: false
prerelease: false
- name: Notify Docker Image Availability
run: |
echo "JobSpy Docker Image - ghcr.io/${{ github.repository }}/jobspy_api:latest"