Skip to content

Commit

Permalink
Update release.yml to also tag and push as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
tonur committed Jan 18, 2024
1 parent 7e9a90a commit 0b37f84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
docker login -u "tonur" -p "${{ secrets.DOCKER_ACCESS_TOKEN }}"
docker push tonur/tenable-exporter:$next_version
# Tag and push with "latest"
docker tag tonur/tenable-exporter:$next_version tonur/tenable-exporter:latest
docker push tonur/tenable-exporter:latest
- name: Create and push release branch
run: |
git config user.name "GitHub Actions Bot"
Expand All @@ -53,4 +57,4 @@ jobs:
curl -X POST -H "Authorization: token ${{ secrets.RELEASE_GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/releases" \
-d "{\"tag_name\": \"v$next_version\", \"body\": \"$body\", \"draft\": true, \"prerelease\": false}"
-d "{\"tag_name\": \"v$next_version\", \"name\": \"$next_version\", \"body\": \"$body\", \"draft\": true, \"prerelease\": false}"

0 comments on commit 0b37f84

Please sign in to comment.