Skip to content

Commit

Permalink
ci(ci): enhance CI workflow and update Docker configuration
Browse files Browse the repository at this point in the history
- Update CI workflow to include new steps for triggering a pipeline and outputting results
- Change Dockerfile to use the latest version of the drone-gitlab-ci image

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Oct 21, 2024
1 parent 83ee929 commit b556512
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,21 @@ jobs:
project_id: ${{ secrets.PROJECT_ID }}
wait: true
timeout: 5s

output:
name: output
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: trigger pipeline
uses: ./
id: trigger
with:
token: ${{ secrets.PROJECT_TOKEN }}
project_id: ${{ secrets.PROJECT_ID }}

- name: output pipeline
run: |
echo ${{ steps.trigger.outputs.web_url }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/appleboy/drone-gitlab-ci:1.3.1
FROM ghcr.io/appleboy/drone-gitlab-ci:latest

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
Expand Down

0 comments on commit b556512

Please sign in to comment.