You've already forked Php-Template
feat/migrations-container #5
@@ -33,5 +33,41 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
tags: siteworxpro/template:${{ gitea.ref_name }}
|
tags: siteworxpro/template:${{ gitea.ref_name }}
|
||||||
|
|
||||||
|
Build-Migrations:
|
||||||
|
needs:
|
||||||
|
- Build
|
||||||
|
name: 🖥️ 🔨 Build Migrations
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 🛡️ 🔒 Add Siteworx CA Certificates
|
||||||
|
run: |
|
||||||
|
curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt
|
||||||
|
update-ca-certificates
|
||||||
|
|
||||||
|
- name: 🔑 🔐 Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: 📖 🔍 Checkout Repository Code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: 🏗️ 🔧 Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: 🐳 🔨 Build Migrations Container
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
sbom: true
|
||||||
|
provenance: true
|
||||||
|
context: .
|
||||||
|
file: migrations.Dockerfile
|
||||||
|
tags: siteworxpro/template:${{ gitea.ref_name }}-migrations
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
# Template
|
# Template
|
||||||
|
|
||||||
[](https://git.siteworxpro.com/rrise/php-template/-/commits/master)
|

|
||||||
[](https://git.siteworxpro.com/rrise/php-template/-/commits/master)
|
|
||||||
[](https://git.siteworxpro.com/rrise/php-template/-/releases)
|
|
||||||
|
|
||||||
## Dev Environment
|
## Dev Environment
|
||||||
|
|
||||||
|
|||||||
5
migrations.Dockerfile
Normal file
5
migrations.Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
FROM siteworxpro/migrate:v4.18.3
|
||||||
|
|
||||||
|
ADD db/migrations /app/db/migrations
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
Reference in New Issue
Block a user