Skip to content

Commit 8714967

Browse files
committed
Add Docker
1 parent 4dbe0f5 commit 8714967

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: springduck
2+
on:
3+
push:
4+
paths:
5+
- ./0ctf2025
6+
- .github/workflows/0ctf2025-springduck.yaml
7+
8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: ${{ github.repository }}
11+
12+
jobs:
13+
docker:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Login to GitHub Container Registry
17+
uses: docker/login-action@v3
18+
with:
19+
registry: ghcr.io
20+
username: ${{ github.actor }}
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
- name: Build and push
25+
uses: docker/build-push-action@v6
26+
with:
27+
platforms: linux/amd64,linux/arm64
28+
push: true
29+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:0ctf2025-springduck
30+
context: ./0ctf2025/springduck/challenge
31+
file: .//0ctf2025/springduck/challenge/Dockerfile

0ctf2025/springduck/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[中文](readme_cn.md)
22

3-
[English](readme_en.md)
3+
[English](readme_en.md)
4+
5+
[Challenge Docker](https://github.com/zsxsoft/my-ctf-challenges/pkgs/container/fava-management)

0 commit comments

Comments
 (0)