fix #32
This file contains 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 Base Image | |
concurrency: | |
group: build-base-${{ github.ref }}-1 | |
cancel-in-progress: true | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }}-base | |
on: | |
push: | |
paths: | |
- 'docker/apache/Dockerfile.base' | |
- '.github/workflows/build-base-image.yaml' | |
workflow_dispatch: | |
jobs: | |
docker-build: | |
runs-on: ubuntu-latest | |
environment: | |
name: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up swap | |
run: | | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
free -h # Vérifier que le swap est actif | |
- name: Build base image | |
uses: ./.github/actions/build-docker-image | |
with: | |
registry_url: ${{ env.REGISTRY }} | |
registry_username: ${{ github.actor }} | |
registry_password: ${{ secrets.GITHUB_TOKEN }} | |
docker_image: ${{ env.IMAGE_NAME }} | |
docker_file: "base" |