diff --git a/.gitea/workflows/build_nightly.yaml b/.gitea/workflows/build_nightly.yaml new file mode 100644 index 0000000..8404c6c --- /dev/null +++ b/.gitea/workflows/build_nightly.yaml @@ -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" diff --git a/Makefile b/Makefile index d16e3dd..8eeac93 100644 --- a/Makefile +++ b/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 diff --git a/example/app/docker-compose.yml b/example/app/docker-compose.yml index 1f3a38f..47f7648 100644 --- a/example/app/docker-compose.yml +++ b/example/app/docker-compose.yml @@ -1,7 +1,7 @@ name: myoauth services: myoauth_core: - image: arielherself/myoauth + image: arielherself/myoauth:latest container_name: myoauth_core environment: POSTGRES_HOST: postgres