|
|
@ -3,24 +3,6 @@ name: docker
|
|
|
|
on: [push, pull_request]
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
--load
|
|
|
|
|
|
|
|
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deploy-latest:
|
|
|
|
deploy-latest:
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master' }}
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master' }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
@ -32,7 +14,10 @@ jobs:
|
|
|
|
- name: Install Docker Buildx
|
|
|
|
- name: Install Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build image
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
|
|
|
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build & push image
|
|
|
|
run: >
|
|
|
|
run: >
|
|
|
|
docker buildx build
|
|
|
|
docker buildx build
|
|
|
|
--file DiscordChatExporter.Cli.dockerfile
|
|
|
|
--file DiscordChatExporter.Cli.dockerfile
|
|
|
@ -41,12 +26,6 @@ jobs:
|
|
|
|
--tag tyrrrz/discordchatexporter:latest
|
|
|
|
--tag tyrrrz/discordchatexporter:latest
|
|
|
|
.
|
|
|
|
.
|
|
|
|
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
|
|
|
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Push image
|
|
|
|
|
|
|
|
run: ocker push tyrrrz/discordchatexporter --all-tags
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deploy-stable:
|
|
|
|
deploy-stable:
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
@ -62,7 +41,10 @@ jobs:
|
|
|
|
- name: Install Docker Buildx
|
|
|
|
- name: Install Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build image
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
|
|
|
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build & push image
|
|
|
|
run: >
|
|
|
|
run: >
|
|
|
|
docker buildx build
|
|
|
|
docker buildx build
|
|
|
|
--file DiscordChatExporter.Cli.dockerfile
|
|
|
|
--file DiscordChatExporter.Cli.dockerfile
|
|
|
@ -71,9 +53,3 @@ jobs:
|
|
|
|
--tag tyrrrz/discordchatexporter:stable
|
|
|
|
--tag tyrrrz/discordchatexporter:stable
|
|
|
|
--tag tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }}
|
|
|
|
--tag tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }}
|
|
|
|
.
|
|
|
|
.
|
|
|
|
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
|
|
|
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Push image
|
|
|
|
|
|
|
|
run: docker push tyrrrz/discordchatexporter --all-tags
|
|
|
|
|
|
|
|