actions: Added test docker flow
This commit is contained in:
parent
23540072ab
commit
71759591d6
@ -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'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user