Skip to content

feat: proposal of management of .env* parameters files in Symfony+Docker way #334

feat: proposal of management of .env* parameters files in Symfony+Docker way

feat: proposal of management of .env* parameters files in Symfony+Docker way #334

Workflow file for this run

name: build & test app
on:
pull_request:
push:
branches: [main]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test package with tox
run: tox -vv
- name: Login to GitHub container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: RonanMorgan
password: ${{ secrets.WRITE_PACKAGE_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=sha
- name: Build and Push Docker images to ghrc
uses: docker/build-push-action@v4
with:
context: .
file: ./docker-env/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}