Docker build action (round 2) (#34)
* Added first attempt at dockerfile * Added workflow dispatch [skip ci] * Trying PR trigger just for now [skip ci] * Trying some more [skip ci] * Revert for merge
This commit is contained in:
parent
0d29f70a28
commit
b8cec51c3b
1 changed files with 30 additions and 0 deletions
30
.github/workflows/build_and_push_docker.yml
vendored
Normal file
30
.github/workflows/build_and_push_docker.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
file: ./selfhosted.Dockerfile
|
||||||
|
tags: keglin/pinchflat:dev
|
||||||
Loading…
Reference in a new issue