Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Remove old GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jun 21, 2024
1 parent c3eea4c commit ae1d4e3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 101 deletions.
44 changes: 0 additions & 44 deletions .github/actions/docker-build/action.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/get-version-tag/action.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,6 @@ concurrency:
group: cd-${{ github.ref }}

jobs:
# build-old:
# runs-on: ubuntu-latest
# permissions:
# packages: write
# contents: read
# steps:
# - uses: actions/checkout@v4
# - name: Get tag
# id: version-tag
# uses: ./.github/actions/get-version-tag
# - name: Build Docker image
# uses: ./.github/actions/docker-build
# with:
# version: ${{ steps.version-tag.outputs.version-tag }}
# latest: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }}

build:
runs-on: ubuntu-latest
permissions:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/remove-untagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,7 @@ on:
jobs:
remove-untagged:
runs-on: ubuntu-latest
# env:
# PER_PAGE: 100
steps:
# - name: Delete untagged images
# uses: actions/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# const response = await github.request("GET /orgs/${{ github.repository_owner }}/packages/container/${{ vars.DOCKER_IMAGE_NAME }}/versions",
# { per_page: ${{ env.PER_PAGE }}
# });
# for(version of response.data) {
# if (version.metadata.container.tags.length == 0 && version.name !== "latest" && version.name !== "preview") {
# console.log("Delete " + version.id)

# const deleteResponse = await github.request("DELETE /orgs/${{ github.repository_owner }}/packages/container/${{ vars.DOCKER_IMAGE_NAME }}/versions/" + version.id, { });
# console.log("status " + deleteResponse.status)
# }
# }
- name: Remove untagged Docker images
uses: nationalarchives/ds-docker-actions/.github/actions/remove-untagged@main
with:
Expand Down

0 comments on commit ae1d4e3

Please sign in to comment.