From fe9cf71ad266bb4a4d995f4472b737df242bb7e3 Mon Sep 17 00:00:00 2001 From: raycadle Date: Wed, 28 Aug 2024 17:14:11 -0600 Subject: [PATCH] added workflow for building on push to dev branch --- .github/workflows/dev-docker-image.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/dev-docker-image.yml diff --git a/.github/workflows/dev-docker-image.yml b/.github/workflows/dev-docker-image.yml new file mode 100644 index 0000000..5ee14ad --- /dev/null +++ b/.github/workflows/dev-docker-image.yml @@ -0,0 +1,15 @@ +name: Development Docker Image CI for GHCR + +on: + push: + branches: [ "dev" ] +jobs: + build_and_publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + - name: Build and publish the development Docker image to GHCR + run: | + docker login --username raycadle --password ${{ secrets.GH_PAT }} ghcr.io + docker build --build-arg BUILD_DATE="$(date +%d/%m/%y)" --build-arg VERSION="$(date +%R:%S)" --tag ghcr.io/raycadle/ntfy-dev:latest . + docker push ghcr.io/raycadle/ntfy-dev:latest