Skip to content

Commit 8ee1935

Browse files
authored
Merge pull request #11 from JohanDevl/develop
Streamline Docker Release Workflow
2 parents 20abf61 + 60ba63c commit 8ee1935

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -136,34 +136,3 @@ jobs:
136136
fi
137137
env:
138138
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139-
140-
# Create release body
141-
- name: Create release body
142-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
143-
run: |
144-
{
145-
cat /tmp/release/pr_body.txt
146-
echo -e "\n\n### Docker Image"
147-
echo -e "The Docker image is attached as an asset and can be loaded with:"
148-
echo -e '```bash'
149-
echo -e 'gunzip -c docker-image.tar.gz | docker load'
150-
echo -e '```'
151-
echo -e "\nOr directly pull from GitHub Container Registry:"
152-
echo -e '```bash'
153-
echo -e 'docker pull ghcr.io/${{ github.repository }}:latest'
154-
echo -e '```'
155-
} > /tmp/release/release_body.txt
156-
157-
# Create a single release when merging to main
158-
- name: Create release
159-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
160-
id: create_release
161-
uses: softprops/action-gh-release@v1
162-
with:
163-
name: "Release ${{ github.run_number }}"
164-
tag_name: "v0.1.${{ github.run_number }}"
165-
draft: false
166-
prerelease: false
167-
files: |
168-
/tmp/release/docker-image.tar.gz
169-
body_path: /tmp/release/release_body.txt

0 commit comments

Comments
 (0)