diff --git a/.github/workflows/datascience-melodic.yml b/.github/workflows/datascience-melodic.yml deleted file mode 100644 index 3d2ab6d..0000000 --- a/.github/workflows/datascience-melodic.yml +++ /dev/null @@ -1,92 +0,0 @@ -# github action for building and pushing docker images -name: Build, test, and publish Docker Image tagged datascience-melodic - -env: - # OWNER: ${{ github.repository_owner }} - OWNER: mpo-web-consulting - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.event.repository.name }} - -# For more details on events that trigger workflows see: -# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows -on: - schedule: - # Weekly, at 07:00 on Monday UTC time - - cron: "0 7 * * 1" - pull_request: - paths: - - ".github/workflows/**" - - "images/**" - - "tests/**" - - "requirements-dev.txt" - push: - branches: - - main - paths: - - ".github/workflows/**" - - "images/**" - - "tests/**" - - "requirements-dev.txt" - workflow_dispatch: - -# https://docs.github.com/en/actions/using-jobs/using-concurrency -concurrency: - # only cancel in-progress jobs or runs for the current workflow - matches against branch & tags - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-test-publish-images: - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - - steps: - - name: Checkout Repo ⚡️ - uses: actions/checkout@v4 - - - name: Set Up Python 🐍 - uses: actions/setup-python@v5 - with: - python-version: 3.x - - - name: Install Dev Dependencies 📦 - run: | - pip install --upgrade pip - pip install --upgrade -r requirements-dev.txt - - - name: Get commit sha, this will be used as a tag later on 🏷 - shell: bash - run: | - echo "sha12=$(echo ${GITHUB_SHA} | cut -c1-12)" >> $GITHUB_OUTPUT - id: get_sha - - - name: Build image 🛠 - run: | - docker build --rm --force-rm --tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:latest images/datascience/melodic - env: - DOCKER_BUILDKIT: 1 - # Full logs for CI build - BUILDKIT_PROGRESS: plain - - - name: Run tests ✅ - run: python3 -m pytest tests - - - name: Login to container registry 🔐 - if: github.ref == 'refs/heads/main' - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Push Image to container registry 📤 - uses: docker/build-push-action@v5 - if: github.ref == 'refs/heads/main' || github.event_name == 'schedule' - with: - context: images/datascience/melodic/ - push: true - tags: | - ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:datascience-melodic - ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:datascience-melodic-${{steps.get_sha.outputs.sha12}} \ No newline at end of file diff --git a/.github/workflows/minimal-melodic.yml b/.github/workflows/minimal-melodic.yml deleted file mode 100644 index cfc13b4..0000000 --- a/.github/workflows/minimal-melodic.yml +++ /dev/null @@ -1,92 +0,0 @@ -# github action for building and pushing docker images -name: Build, test, and publish Docker Image tagged minimal-melodic - -env: - # OWNER: ${{ github.repository_owner }} - OWNER: mpo-web-consulting - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.event.repository.name }} - -# For more details on events that trigger workflows see: -# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows -on: - schedule: - # Weekly, at 07:00 on Monday UTC time - - cron: "0 7 * * 1" - pull_request: - paths: - - ".github/workflows/**" - - "images/**" - - "tests/**" - - "requirements-dev.txt" - push: - branches: - - main - paths: - - ".github/workflows/**" - - "images/**" - - "tests/**" - - "requirements-dev.txt" - workflow_dispatch: - -# https://docs.github.com/en/actions/using-jobs/using-concurrency -concurrency: - # only cancel in-progress jobs or runs for the current workflow - matches against branch & tags - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-test-publish-images: - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - - steps: - - name: Checkout Repo ⚡️ - uses: actions/checkout@v4 - - - name: Set Up Python 🐍 - uses: actions/setup-python@v5 - with: - python-version: 3.x - - - name: Install Dev Dependencies 📦 - run: | - pip install --upgrade pip - pip install --upgrade -r requirements-dev.txt - - - name: Get commit sha, this will be used as a tag later on 🏷 - shell: bash - run: | - echo "sha12=$(echo ${GITHUB_SHA} | cut -c1-12)" >> $GITHUB_OUTPUT - id: get_sha - - - name: Build image 🛠 - run: | - docker build --rm --force-rm --tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:latest images/minimal/melodic - env: - DOCKER_BUILDKIT: 1 - # Full logs for CI build - BUILDKIT_PROGRESS: plain - - - name: Run tests ✅ - run: python3 -m pytest tests - - - name: Login to container registry 🔐 - if: github.ref == 'refs/heads/main' - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Push Image to container registry 📤 - uses: docker/build-push-action@v5 - if: github.ref == 'refs/heads/main' || github.event_name == 'schedule' - with: - context: images/minimal/melodic/ - push: true - tags: | - ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:minimal-melodic - ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:minimal-melodic-${{steps.get_sha.outputs.sha12}} \ No newline at end of file diff --git a/.github/workflows/scipy-melodic.yml b/.github/workflows/scipy-melodic.yml deleted file mode 100644 index ef5e1f4..0000000 --- a/.github/workflows/scipy-melodic.yml +++ /dev/null @@ -1,92 +0,0 @@ -# github action for building and pushing docker images -name: Build, test, and publish Docker Image tagged scipy-melodic - -env: - # OWNER: ${{ github.repository_owner }} - OWNER: mpo-web-consulting - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.event.repository.name }} - -# For more details on events that trigger workflows see: -# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows -on: - schedule: - # Weekly, at 07:00 on Monday UTC time - - cron: "0 7 * * 1" - pull_request: - paths: - - ".github/workflows/**" - - "images/**" - - "tests/**" - - "requirements-dev.txt" - push: - branches: - - main - paths: - - ".github/workflows/**" - - "images/**" - - "tests/**" - - "requirements-dev.txt" - workflow_dispatch: - -# https://docs.github.com/en/actions/using-jobs/using-concurrency -concurrency: - # only cancel in-progress jobs or runs for the current workflow - matches against branch & tags - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-test-publish-images: - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - - steps: - - name: Checkout Repo ⚡️ - uses: actions/checkout@v4 - - - name: Set Up Python 🐍 - uses: actions/setup-python@v5 - with: - python-version: 3.x - - - name: Install Dev Dependencies 📦 - run: | - pip install --upgrade pip - pip install --upgrade -r requirements-dev.txt - - - name: Get commit sha, this will be used as a tag later on 🏷 - shell: bash - run: | - echo "sha12=$(echo ${GITHUB_SHA} | cut -c1-12)" >> $GITHUB_OUTPUT - id: get_sha - - - name: Build image 🛠 - run: | - docker build --rm --force-rm --tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:latest images/scipy/melodic - env: - DOCKER_BUILDKIT: 1 - # Full logs for CI build - BUILDKIT_PROGRESS: plain - - - name: Run tests ✅ - run: python3 -m pytest tests - - - name: Login to container registry 🔐 - if: github.ref == 'refs/heads/main' - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Push Image to container registry 📤 - uses: docker/build-push-action@v5 - if: github.ref == 'refs/heads/main' || github.event_name == 'schedule' - with: - context: images/scipy/melodic/ - push: true - tags: | - ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:scipy-melodic - ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:scipy-melodic-${{steps.get_sha.outputs.sha12}} \ No newline at end of file diff --git a/.github/workflows/tensorflow-melodic.yml b/.github/workflows/tensorflow-melodic.yml deleted file mode 100644 index aea5bba..0000000 --- a/.github/workflows/tensorflow-melodic.yml +++ /dev/null @@ -1,92 +0,0 @@ -# github action for building and pushing docker images -name: Build, test, and publish Docker Image tagged tensorflow-melodic - -env: - # OWNER: ${{ github.repository_owner }} - OWNER: mpo-web-consulting - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.event.repository.name }} - -# For more details on events that trigger workflows see: -# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows -on: - schedule: - # Weekly, at 07:00 on Monday UTC time - - cron: "0 7 * * 1" - pull_request: - paths: - - ".github/workflows/**" - - "images/**" - - "tests/**" - - "requirements-dev.txt" - push: - branches: - - main - paths: - - ".github/workflows/**" - - "images/**" - - "tests/**" - - "requirements-dev.txt" - workflow_dispatch: - -# https://docs.github.com/en/actions/using-jobs/using-concurrency -concurrency: - # only cancel in-progress jobs or runs for the current workflow - matches against branch & tags - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-test-publish-images: - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - - steps: - - name: Checkout Repo ⚡️ - uses: actions/checkout@v4 - - - name: Set Up Python 🐍 - uses: actions/setup-python@v5 - with: - python-version: 3.x - - - name: Install Dev Dependencies 📦 - run: | - pip install --upgrade pip - pip install --upgrade -r requirements-dev.txt - - - name: Get commit sha, this will be used as a tag later on 🏷 - shell: bash - run: | - echo "sha12=$(echo ${GITHUB_SHA} | cut -c1-12)" >> $GITHUB_OUTPUT - id: get_sha - - - name: Build image 🛠 - run: | - docker build --rm --force-rm --tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:latest images/tensorflow/melodic - env: - DOCKER_BUILDKIT: 1 - # Full logs for CI build - BUILDKIT_PROGRESS: plain - - - name: Run tests ✅ - run: python3 -m pytest tests - - - name: Login to container registry 🔐 - if: github.ref == 'refs/heads/main' - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Push Image to container registry 📤 - uses: docker/build-push-action@v5 - if: github.ref == 'refs/heads/main' || github.event_name == 'schedule' - with: - context: images/tensorflow/melodic/ - push: true - tags: | - ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:tensorflow-melodic - ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:tensorflow-melodic-${{steps.get_sha.outputs.sha12}} \ No newline at end of file