Skip to content

Commit

Permalink
添加 ppc/captcha 工作流文件
Browse files Browse the repository at this point in the history
  • Loading branch information
13m0n4de committed Oct 16, 2023
1 parent 93dba79 commit a9e3e26
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/chal.ppc.captcha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Challenge captcha

on:
push:
branches: ["main"]
paths:
- "!**/README.md"
- "challenges/web/captcha/build/**"
workflow_dispatch:

env:
TYPE: web
NAME: captcha
REGISTRY: ghcr.io

jobs:
challenge-build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.NAME }}
tags: |
latest
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: challenges/${{ env.TYPE }}/${{ env.NAME }}/build
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true

0 comments on commit a9e3e26

Please sign in to comment.