Skip to content

Commit

Permalink
Merge pull request #62 from ZeroGachis/remove_delete_image
Browse files Browse the repository at this point in the history
Remove non working step
  • Loading branch information
rodo authored Feb 2, 2024
2 parents 4274ebd + dae8cc1 commit e6ccdb2
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/delete-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ on:
required: false
type: string
default: ${{ github.event.repository.name }}
vault_url:
vault_url:
required: false
type: string
vault_github_actions_role:
required: false
required: false
type: string
environment_name:
required: false
Expand All @@ -29,33 +29,12 @@ jobs:
packages: write
environment:
name: ${{ inputs.environment_name }}
env:
env:
VAULT_URL: ${{ inputs.VAULT_URL || vars.VAULT_URL || vars.PULLREQUEST_VAULT_URL }}
VAULT_GITHUB_ACTIONS_ROLE: ${{ inputs.vault_github_actions_role || vars.VAULT_GITHUB_ACTIONS_ROLE }}
steps:
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
version: ${{ vars.TAILSCALE_VERSION }}

- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@00bce0da9c4b8be526718f7f5f20a88966f31022
with:
url: ${{ env.VAULT_URL }}
role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}
method: jwt
path: "github-actions"
secrets: |
secret/data/github-actions-common/github/github-packages-token PASSWORD | GH_ORG_PACKAGES_TOKEN ;
- uses: smartsquaregmbh/[email protected]
with:
token: ${{ steps.secrets.outputs.GH_ORG_PACKAGES_TOKEN }}
type: container
organization: ${{ github.repository_owner }}
names: |
${{ inputs.image_name }}
# We keep this action as it is configure in lot of repo
# the legacy version did not work this is why we removed it
# TODO: find a way to delete images from github registry
- name: None
run: echo "Enjoy"

0 comments on commit e6ccdb2

Please sign in to comment.