Skip to content

Commit 374961b

Browse files
committed
Switch from drone to actions (#363)
Reviewed-on: https://git.walbeck.it/mwalbeck/docker-cyberchef/pulls/363 Co-authored-by: Magnus Walbeck <[email protected]> Co-committed-by: Magnus Walbeck <[email protected]>
1 parent 93bd4ad commit 374961b

File tree

3 files changed

+82
-86
lines changed

3 files changed

+82
-86
lines changed

.drone.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

.forgejo/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build and publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
lint:
10+
runs-on: docker
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: https://github.com/hadolint/[email protected]
14+
with:
15+
dockerfile: Dockerfile
16+
17+
build:
18+
runs-on: dind
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Get docker tags
22+
id: tags
23+
shell: sh
24+
env:
25+
VERSION_TYPE: "docker_env"
26+
APP_NAME: "CYBERCHEF"
27+
DOCKERFILE_PATH: "Dockerfile"
28+
CUSTOM_TAGS: "latest"
29+
IMAGE_NAME: "mwalbeck/cyberchef"
30+
run: |
31+
determine-docker-tags
32+
dockerd &
33+
- name: Login to Docker Hub
34+
uses: https://github.com/docker/login-action@v3
35+
with:
36+
username: ${{ secrets.DOCKERHUB_USERNAME }}
37+
password: ${{ secrets.DOCKERHUB_TOKEN }}
38+
- name: Set up Docker Buildx
39+
uses: https://github.com/docker/setup-buildx-action@v3
40+
- name: Build and push
41+
uses: https://github.com/docker/build-push-action@v6
42+
with:
43+
push: true
44+
tags: ${{ steps.tags.outputs.tags }}
45+

.forgejo/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test
2+
3+
on: pull_request
4+
5+
jobs:
6+
lint:
7+
if: github.ref != 'refs/heads/renovate/*'
8+
runs-on: docker
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: https://github.com/hadolint/[email protected]
12+
with:
13+
dockerfile: Dockerfile
14+
15+
test:
16+
runs-on: dind
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Get docker tags
20+
id: tags
21+
shell: sh
22+
env:
23+
VERSION_TYPE: "docker_env"
24+
APP_NAME: "CYBERCHEF"
25+
DOCKERFILE_PATH: "Dockerfile"
26+
CUSTOM_TAGS: "latest"
27+
IMAGE_NAME: "mwalbeck/cyberchef"
28+
run: |
29+
determine-docker-tags
30+
dockerd &
31+
- name: Set up Docker Buildx
32+
uses: https://github.com/docker/setup-buildx-action@v3
33+
- name: Test build
34+
uses: https://github.com/docker/build-push-action@v6
35+
with:
36+
tags: ${{ steps.tags.outputs.tags }}
37+

0 commit comments

Comments
 (0)