|
|
|
@ -39,17 +39,17 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Get release version
|
|
|
|
|
id: get_version
|
|
|
|
|
uses: dawidd6/action-get-tag@v1
|
|
|
|
|
id: get-version
|
|
|
|
|
uses: tyrrrz/action-get-tag@v1
|
|
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
|
|
|
|
|
- name: Build container
|
|
|
|
|
run: docker build -f DiscordChatExporter.Cli.dockerfile -t tyrrrz/discordchatexporter:stable -t tyrrrz/discordchatexporter:${{ steps.get_version.outputs.tag }} .
|
|
|
|
|
run: docker build -f DiscordChatExporter.Cli.dockerfile -t tyrrrz/discordchatexporter:stable -t tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }} .
|
|
|
|
|
|
|
|
|
|
- name: Push container (stable)
|
|
|
|
|
run: docker push tyrrrz/discordchatexporter:stable
|
|
|
|
|
|
|
|
|
|
- name: Push container (${{ steps.get_version.outputs.tag }})
|
|
|
|
|
run: docker push tyrrrz/discordchatexporter:${{ steps.get_version.outputs.tag }}
|
|
|
|
|
- name: Push container (${{ steps.get-version.outputs.tag }})
|
|
|
|
|
run: docker push tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }}
|
|
|
|
|