Compare commits
15 Commits
5a8511c8cc
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a69d0f730 | |||
| 1603453aa7 | |||
| ca453b90b4 | |||
| b539441aea | |||
| be930f67fd | |||
| ac3b06424f | |||
| 5c0d5bc1cc | |||
| e83151f74f | |||
| 56a887c0fb | |||
| e929d68f3f | |||
| 564264dbbe | |||
| 1d87e47295 | |||
| 47fff33a0d | |||
| e1760f73b5 | |||
| e9a8b99c20 |
@@ -1,5 +1,4 @@
|
|||||||
.gitignore
|
.gitignore
|
||||||
LICENSE
|
LICENSE
|
||||||
README.md
|
README.md
|
||||||
.drone.yml
|
|
||||||
Dockerfile
|
Dockerfile
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Build and Deploy docker container
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,22 +6,25 @@ on:
|
|||||||
- dev*
|
- dev*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
-
|
||||||
uses: actions/checkout@v4
|
name: Login to Docker Hub
|
||||||
- name: Set up Docker Buildx
|
uses: docker/login-action@v4
|
||||||
uses: docker/setup-buildx-action@v4
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
with:
|
||||||
registry: git.jonb.io
|
registry: git.jonb.io
|
||||||
username: '${{ gitea.actor }}'
|
username: '${{ gitea.actor }}'
|
||||||
password: '${{ secrets.JONBIO_CI }}'
|
password: '${{ secrets.JONBIO_CI }}'
|
||||||
- name: Build and push
|
-
|
||||||
uses: docker/build-push-action@v6
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v4
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v4
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
context: .
|
|
||||||
push: true
|
push: true
|
||||||
tags: 'git.jonb.io/jblu/hottub:dev'
|
tags: git.jonb.io/jblu/hottub:dev
|
||||||
+15
-12
@@ -1,4 +1,4 @@
|
|||||||
name: Build and Deploy docker container
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,22 +6,25 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
-
|
||||||
uses: actions/checkout@v4
|
name: Login to Docker Hub
|
||||||
- name: Set up Docker Buildx
|
uses: docker/login-action@v4
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
with:
|
||||||
registry: git.jonb.io
|
registry: git.jonb.io
|
||||||
username: '${{ gitea.actor }}'
|
username: '${{ gitea.actor }}'
|
||||||
password: '${{ secrets.JONBIO_CI }}'
|
password: '${{ secrets.JONBIO_CI }}'
|
||||||
- name: Build and push
|
-
|
||||||
uses: docker/build-push-action@v6
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v4
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v4
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
context: .
|
|
||||||
push: true
|
push: true
|
||||||
tags: 'git.jonb.io/jblu/hottub:latest'
|
tags: git.jonb.io/jblu/hottub:latest
|
||||||
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
COPY . opt
|
COPY entrypoint.sh /opt
|
||||||
RUN apk add --no-cache cronie
|
|
||||||
RUN chmod +x /opt/entrypoint.sh
|
RUN chmod +x /opt/entrypoint.sh
|
||||||
CMD ["/opt/entrypoint.sh"]
|
CMD ["/opt/entrypoint.sh"]
|
||||||
+5
-1
@@ -2,4 +2,8 @@
|
|||||||
|
|
||||||
CRON_CONFIG_FILE="/etc/crontabs/root"
|
CRON_CONFIG_FILE="/etc/crontabs/root"
|
||||||
|
|
||||||
echo "${CRON} echo "Come in the water is fine!" > /opt/output.log" > $CRON_CONFIG_FILE
|
grep -qF 'echo Come in the water is fine!' $CRON_CONFIG_FILE || echo "${CRON} echo Come in the water is fine!" >> $CRON_CONFIG_FILE
|
||||||
|
grep -qF 'echo Turn on the bubbles!' $CRON_CONFIG_FILE || echo "${CRON} echo Turn on the bubbles!" >> $CRON_CONFIG_FILE
|
||||||
|
grep -qF '@reboot' $CRON_CONFIG_FILE || echo "@reboot echo Let\'s get in the water again!" >> $CRON_CONFIG_FILE
|
||||||
|
|
||||||
|
exec crond -f
|
||||||
Reference in New Issue
Block a user