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
|
||||
LICENSE
|
||||
README.md
|
||||
.drone.yml
|
||||
Dockerfile
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Build and Deploy docker container
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -6,22 +6,25 @@ on:
|
||||
- dev*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout main
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: git.jonb.io
|
||||
username: '${{ gitea.actor }}'
|
||||
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:
|
||||
context: .
|
||||
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:
|
||||
push:
|
||||
@@ -6,22 +6,25 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout main
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: git.jonb.io
|
||||
username: '${{ gitea.actor }}'
|
||||
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:
|
||||
context: .
|
||||
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
|
||||
COPY . opt
|
||||
RUN apk add --no-cache cronie
|
||||
COPY entrypoint.sh /opt
|
||||
RUN chmod +x /opt/entrypoint.sh
|
||||
CMD ["/opt/entrypoint.sh"]
|
||||
+5
-1
@@ -2,4 +2,8 @@
|
||||
|
||||
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