diff --git a/.github/workflows/devcontainer-build-publish.yaml b/.github/workflows/devcontainer-build-publish.yaml deleted file mode 100644 index 956af9e..0000000 --- a/.github/workflows/devcontainer-build-publish.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Build and Publish DevContainer Image -on: - workflow_call: - secrets: - DOCKERHUB_USERNAME: - required: true - DOCKERHUB_TOKEN: - required: true -permissions: - contents: read -jobs: - devcontainer-build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - with: - persist-credentials: false - - name: Install dependencies - run: | - sudo curl https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64\ - -Lo /usr/local/bin/yq - sudo chmod +x /usr/local/bin/yq - yq --version - - name: Determine metadata - run: | - PIP_PACKAGE_NAME=$(ls */version.py | cut -d '/' -f 1) - echo "PIP_PACKAGE_NAME=${PIP_PACKAGE_NAME}" >> $GITHUB_ENV - - name: Login to Docker Hub - uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0 - with: - username: ${{secrets.DOCKERHUB_USERNAME}} - password: ${{secrets.DOCKERHUB_TOKEN}} - - name: Build image - run: | - IMAGE=$(yq eval '.services.app.image' ./.devcontainer/docker-compose.yaml) - docker build -t "${IMAGE}" -f ./.devcontainer/Dockerfile . - docker push "${IMAGE}" diff --git a/.github/workflows/devcontainer-publish.yaml b/.github/workflows/devcontainer-publish.yaml deleted file mode 100644 index 8e59cb1..0000000 --- a/.github/workflows/devcontainer-publish.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: Deprecated:Publish DevContainer Image -on: - workflow_call: - secrets: - DOCKERHUB_USERNAME: - required: true - DOCKERHUB_TOKEN: - required: true -permissions: - contents: read -jobs: - devcontainer-publish: - runs-on: ubuntu-latest - steps: - - name: Deprecation Warning - run: | - echo "This action is deprecated. Please use the 'Build and Publish DevContainer Image' reusable workflow instead." - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - with: - persist-credentials: false - - name: Install dependencies - run: | - sudo curl https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 \ - -Lo /usr/local/bin/yq - sudo chmod +x /usr/local/bin/yq - - name: Determine metadata - run: | - PIP_PACKAGE_NAME=$(ls */version.py | cut -d '/' -f 1) - echo "PIP_PACKAGE_NAME=${PIP_PACKAGE_NAME}" >> $GITHUB_ENV - - name: Fetch image artifact - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 - with: - name: image-devcontainer-${{env.PIP_PACKAGE_NAME}} - - name: Load image - run: docker load < "image-devcontainer-${PIP_PACKAGE_NAME}.tar.gz" - - name: Login to Docker Hub - uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0 - with: - username: ${{secrets.DOCKERHUB_USERNAME}} - password: ${{secrets.DOCKERHUB_TOKEN}} - - name: Publish image - run: | - IMAGE=$(yq r ./.devcontainer/docker-compose.yaml 'services.app.image') - docker push "${IMAGE}" diff --git a/workflow-templates/devcontainer-build-publish-caller.properties.json b/workflow-templates/devcontainer-build-publish-caller.properties.json deleted file mode 100644 index d304963..0000000 --- a/workflow-templates/devcontainer-build-publish-caller.properties.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "devcontainer-build-publish-caller", - "description": "Datajoint devcontainer build and publish caller" -} \ No newline at end of file diff --git a/workflow-templates/devcontainer-build-publish-caller.yaml b/workflow-templates/devcontainer-build-publish-caller.yaml deleted file mode 100644 index b6f1ecd..0000000 --- a/workflow-templates/devcontainer-build-publish-caller.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: devcontainer_build_publish -on: - workflow_dispatch: - -permissions: - contents: read - -jobs: - call_devcontainer_build_publish: - uses: datajoint/.github/.github/workflows/devcontainer-build-publish.yaml@main - secrets: - DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}} - DOCKERHUB_TOKEN: ${{secrets.DOCKERHUB_TOKEN_FOR_ELEMENTS}} \ No newline at end of file