Compare commits

...

24 Commits

Author SHA1 Message Date
9734ccb9a2 fix(cicd): adds checkout step
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 48s
2024-12-20 16:25:38 -03:00
d6605d803a fix(cicd): adds checkout step
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 43s
2024-12-20 11:50:43 -03:00
6fdc2be4fc fix(cicd): adds checkout step
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 42s
2024-12-20 08:36:00 -03:00
7aba08ef32 fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 26s
2024-12-20 08:34:29 -03:00
326b0e9947 fix(cicd): adds checkout step
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 50s
2024-12-20 08:32:36 -03:00
d835b5b76c fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 48s
2024-12-20 08:25:58 -03:00
eb750432fe fix(cicd): adds checkout step 2024-12-20 08:24:39 -03:00
9225b8947d fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 11s
2024-12-20 08:16:50 -03:00
c60ebb0bc7 fix(cicd): adds checkout step
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 25s
2024-12-19 17:43:47 -03:00
2ef08463c9 fix(cicd): adds checkout step
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 12s
2024-12-19 17:42:08 -03:00
79e0b7be27 fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 11s
2024-12-19 17:41:15 -03:00
8c5b36c282 fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 15s
2024-12-19 17:37:48 -03:00
24d8c7f08f fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 14s
2024-12-19 17:37:05 -03:00
32bab1844e fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 13s
2024-12-19 17:35:10 -03:00
b8c7f8db1a fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 51s
2024-12-19 17:33:43 -03:00
a617cceed1 fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 15s
2024-12-19 17:31:48 -03:00
689139a9e6 fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 11s
2024-12-19 17:31:16 -03:00
777ea50b62 fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 14s
2024-12-19 17:27:53 -03:00
4efee19a9d fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 22s
2024-12-19 17:23:40 -03:00
fc9c73a20d fix(cicd): sets gitea.workspace as docker build env
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 3s
2024-12-19 17:19:02 -03:00
51798e5e37 chore(cicd): adds list repository files step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 3s
2024-12-19 17:17:10 -03:00
daf8e99c86 fix(cicd): sets gitea.workspace as docker build env
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2s
2024-12-19 17:15:30 -03:00
da3ba338b8 fix(cicd): removes dockerfile specification
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2s
2024-12-19 17:11:27 -03:00
bb9c5af87c fix(cicd): removes hash tag on docker build
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2s
2024-12-19 17:10:26 -03:00
2 changed files with 22 additions and 14 deletions

View File

@@ -9,16 +9,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Build the Docker Image
run: |
docker build \
-t sprout-db-migrations:latest \
-t sprout-db-migrations:$(git rev-parse --short) \
-f Dockerfile \
.
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to Container Registry
run: echo "${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin ${{ secrets.DOCKER_REGISTRY }}
- name: Log in to Docker Hub - Main web app container registry
uses: docker/login-action@v1
with:
registry: gitea.dropgaze.xyz
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push the Docker Image
run: docker push ${{ secrets.DOCKER_REGISTRY }}/sprout-db-migrations:$(git rev-parse --short)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: gitea.dropgaze.xyz/jake/sprout-db-migrations:latest
platforms: |
linux/arm64
linux/amd64

View File

@@ -1,7 +1,5 @@
FROM amacneil/dbmate:latest
WORKDIR /app/migrations
COPY db/migrations /app/migrations
COPY ./db /db
CMD ["--wait", "up"]