actions: Revert to old method
All checks were successful
Build Docker / Build Docker (push) Successful in 18s

This commit is contained in:
Nathan Woodburn 2023-08-12 15:02:57 +10:00
parent 5db6c34add
commit e033f2e137
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -25,30 +25,4 @@ jobs:
docker tag woodburn-bot:$tag_num git.woodburn.au/nathanwoodburn/woodburn-bot:$tag_num
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
container: git.woodburn.au/nathanwoodburn/woodburn-docker: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'
docker push git.woodburn.au/nathanwoodburn/woodburn-bot:latest