You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
717 B
30 lines
717 B
name: Docker CD
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- 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:${{ steps.get_version.outputs.tag }} -t tyrrrz/discordchatexporter:stable .
|
|
|
|
- name: Deploy (version)
|
|
run: docker push tyrrrz/discordchatexporter:${{ steps.get_version.outputs.tag }}
|
|
|
|
- name: Deploy (stable)
|
|
run: docker push tyrrrz/discordchatexporter:stable |