chore(nightly): distinguish nightly build and latest build and add CI support and examples
Build Docker Image / build (push) Has been cancelled
Details
Build Docker Image / build (push) Has been cancelled
Details
This commit is contained in:
parent
4cf5e64fed
commit
b51e272424
|
@ -0,0 +1,19 @@
|
|||
name: Build Docker Image
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: "arielherself/myoauth:nightly"
|
7
Makefile
7
Makefile
|
@ -1,5 +1,8 @@
|
|||
pack:
|
||||
sudo docker build -t myoauth . --no-cache
|
||||
|
||||
publish:
|
||||
sudo docker tag myoauth arielherself/myoauth && sudo docker push arielherself/myoauth
|
||||
publish-latest:
|
||||
sudo docker tag myoauth arielherself/myoauth:latest && sudo docker push arielherself/myoauth:latest
|
||||
|
||||
publish-nightly:
|
||||
sudo docker tag myoauth arielherself/myoauth:nightly && sudo docker push arielherself/myoauth:nightly
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: myoauth
|
||||
services:
|
||||
myoauth_core:
|
||||
image: arielherself/myoauth
|
||||
image: arielherself/myoauth:latest
|
||||
container_name: myoauth_core
|
||||
environment:
|
||||
POSTGRES_HOST: postgres
|
||||
|
|
Loading…
Reference in New Issue