mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-22 10:55:15 -04:00
Fix Docker CD workflow
This commit is contained in:
parent
345dc568c0
commit
7fa908ce34
2 changed files with 11 additions and 3 deletions
8
.github/workflows/CD-Docker.yml
vendored
8
.github/workflows/CD-Docker.yml
vendored
|
@ -13,13 +13,17 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v2.3.3
|
||||
|
||||
- name: Get release version
|
||||
id: get-version
|
||||
uses: dawidd6/action-get-tag@v1
|
||||
|
||||
- name: Login
|
||||
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: Build
|
||||
run: docker build -t tyrrrz/discordchatexporter:${{ github.ref }} -t tyrrrz/discordchatexporter:stable .
|
||||
run: docker build -t tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }} -t tyrrrz/discordchatexporter:stable .
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
docker push tyrrrz/discordchatexporter:${{ github.ref }}
|
||||
docker push tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }}
|
||||
docker push tyrrrz/discordchatexporter:stable
|
6
.github/workflows/CD.yml
vendored
6
.github/workflows/CD.yml
vendored
|
@ -13,6 +13,10 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v2.3.3
|
||||
|
||||
- name: Get release version
|
||||
id: get-version
|
||||
uses: dawidd6/action-get-tag@v1
|
||||
|
||||
- name: Install .NET (v3.1)
|
||||
uses: actions/setup-dotnet@v1.7.2
|
||||
with:
|
||||
|
@ -76,6 +80,6 @@ jobs:
|
|||
-Uri "${{ secrets.DISCORD_WEBHOOK }}" `
|
||||
-Method "POST" `
|
||||
-ContentType "application/json; charset=UTF-8" `
|
||||
-Body '{"content":"**DiscordChatExporter** new version released!\nRef: `${{ github.ref }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ github.sha }}/Changelog.md>"}' `
|
||||
-Body '{"content":"**DiscordChatExporter** new version released!\nVersion: `${{ steps.get-version.outputs.tag }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ steps.get-version.outputs.tag }}/Changelog.md>"}' `
|
||||
-UseBasicParsing
|
||||
shell: pwsh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue