deploy to newspace2 #267
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ⚙️ Build and deploy to ACR | ||
|
Check failure on line 1 in .github/workflows/php-build-and-deploy.yml
|
||
| on: | ||
| push: | ||
| branches: | ||
| - feature/deploy-to-newspce2 | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| jobs: | ||
| build: | ||
| name: Docker Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 📁 Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: 🔧 Docker QEMU Setup | ||
| uses: docker/setup-qemu-action@v3 | ||
| - name: 🛠️ Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| - name: 🗝️ Login to Container Registry | ||
| uses: azure/docker-login@v1 | ||
| with: | ||
| login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | ||
| username: ${{ secrets.AZ_USERNAME }10 | ||
| password: ${{ secrets.AZ_PASSWORD }} | ||
| - name: 📃 Docker metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: ${{ secrets.REGISTRY_LOGIN_SERVER }}/newspace2_10 | ||
| flavor: | | ||
| latest=false | ||
| tags: | | ||
| type=raw,value=latest | ||
| type=semver,pattern=v{{version}} | ||
| type=semver,pattern=v{{major}}.{{minor}} | ||
| - name: 🐳 Docker Build & Push | ||
| uses: docker/build-push-action@v5 | ||
| id: docker_build | ||
| with: | ||
| context: ./ | ||
| push: true | ||
| provenance: false | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| file: ./Dockerfile | ||