actions: Added test docker flow
Some checks failed
Build Docker / Build Docker (push) Successful in 21s
Build Docker / Build Docker v2 (push) Failing after 34s

This commit is contained in:
Nathan Woodburn 2023-08-12 13:46:34 +10:00
parent 23540072ab
commit 71759591d6
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 23 additions and 2 deletions

View File

@ -26,6 +26,28 @@ jobs:
docker push git.woodburn.au/nathanwoodburn/woodburn-bot:$tag_num
docker tag woodburn-bot:$tag_num git.woodburn.au/nathanwoodburn/woodburn-bot:latest
docker push git.woodburn.au/nathanwoodburn/woodburn-bot:latest
Build Docker v2:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to private registry
uses: docker/login-action@v1
with:
registry: https://git.woodburn.au
username: nathanwoodburn
password: ${{ secrets.DOCKERGIT_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: 'https://git.woodburn.au/nathanwoodburn/server:latest'
cache-from: 'type=registry,ref=https://git.woodburn.au/nathanwoodburn/server:buildcache'
cache-to: 'type=registry,ref=https://git.woodburn.au/nathanwoodburn/server:buildcache,mode=max'

1
bot.py
View File

@ -3,7 +3,6 @@ from dotenv import load_dotenv
import discord
from discord import app_commands
import requests
import socket
import dns.resolver