Skip to content

Commit

Permalink
Fix artifact pull
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Jun 20, 2024
1 parent 9a92f94 commit 8d04cad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,13 @@ inputs:
registry-password:
required: true
description: Password to log in to the container registry
artifact-name:
required: true
description: Name of the artifact to upload
push-image:
required: true
description: If true, pushes the image to the registry

runs:
using: composite
steps:
- name: Download internal artifacts
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: publish

- name: Set up Docker Build
uses: docker/setup-buildx-action@v3

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/containerize
- uses: ./.github/actions/container-build
with:
registry: ghcr.io
registry-path: ${{ github.repository_owner }}/discord-bot
registry-username: ${{ github.actor }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
artifact-name: DiscordBot
push-image: ${{ github.ref_type == 'branch' && github.ref_protected && github.event_name != 'pull_request' }}

0 comments on commit 8d04cad

Please sign in to comment.