|
|
|
@ -10,8 +10,15 @@ jobs:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Build container
|
|
|
|
|
run: docker build -f DiscordChatExporter.Cli.dockerfile .
|
|
|
|
|
- name: Install Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
|
|
- name: Build image
|
|
|
|
|
run: >
|
|
|
|
|
docker buildx build
|
|
|
|
|
--file DiscordChatExporter.Cli.dockerfile
|
|
|
|
|
--platform linux/amd64,linux/arm64
|
|
|
|
|
.
|
|
|
|
|
|
|
|
|
|
deploy-latest:
|
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master' }}
|
|
|
|
@ -21,13 +28,21 @@ jobs:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Install Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
|
|
- name: Build image
|
|
|
|
|
run: >
|
|
|
|
|
docker buildx build
|
|
|
|
|
--file DiscordChatExporter.Cli.dockerfile
|
|
|
|
|
--platform linux/amd64,linux/arm64
|
|
|
|
|
--tag tyrrrz/discordchatexporter:latest
|
|
|
|
|
.
|
|
|
|
|
|
|
|
|
|
- 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:latest .
|
|
|
|
|
|
|
|
|
|
- name: Push container
|
|
|
|
|
- name: Push image
|
|
|
|
|
run: docker push tyrrrz/discordchatexporter:latest
|
|
|
|
|
|
|
|
|
|
deploy-stable:
|
|
|
|
@ -42,14 +57,20 @@ jobs:
|
|
|
|
|
id: get-version
|
|
|
|
|
uses: tyrrrz/action-get-tag@v1
|
|
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
- name: Install Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
|
|
- name: Build container
|
|
|
|
|
run: docker build -f DiscordChatExporter.Cli.dockerfile -t tyrrrz/discordchatexporter:stable -t tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }} .
|
|
|
|
|
- name: Build image
|
|
|
|
|
run: >
|
|
|
|
|
docker buildx build
|
|
|
|
|
--file DiscordChatExporter.Cli.dockerfile
|
|
|
|
|
--platform linux/amd64,linux/arm64
|
|
|
|
|
--tag tyrrrz/discordchatexporter:stable
|
|
|
|
|
--tag tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }}
|
|
|
|
|
.
|
|
|
|
|
|
|
|
|
|
- name: Push container (stable)
|
|
|
|
|
run: docker push tyrrrz/discordchatexporter:stable
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
|
|
|
|
|
- name: Push container (${{ steps.get-version.outputs.tag }})
|
|
|
|
|
run: docker push tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }}
|
|
|
|
|
- name: Push image
|
|
|
|
|
run: docker push --all-tags tyrrrz/discordchatexporter
|
|
|
|
|