mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
ci: fix build process
This commit is contained in:
25
.github/workflows/docker-release.yml
vendored
25
.github/workflows/docker-release.yml
vendored
@@ -45,28 +45,3 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Get release
|
||||
id: get_release
|
||||
uses: bruceadams/get-release@v1.3.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Attach image to release
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
const fs = require('fs');
|
||||
const release_id = '${{ steps.get_release.outputs.id }}';
|
||||
const tag_name = '${{ github.ref_name }}';
|
||||
const image_name = 'ghcr.io/${{ github.repository }}:${{ github.ref_name }}';
|
||||
|
||||
await github.rest.repos.updateRelease({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
release_id: release_id,
|
||||
body: `Docker image: \`${image_name}\`\n\nAlso available as \`ghcr.io/${{ github.repository }}:latest\``
|
||||
});
|
||||
|
||||
console.log(`Updated release ${release_id} with Docker image information`);
|
||||
|
||||
Reference in New Issue
Block a user