docker-cyberchef/.forgejo/workflows/test.yml
Magnus Walbeck 374961b4a5
All checks were successful
Build and publish / lint (push) Successful in 4s
Build and publish / build (push) Successful in 5m13s
Switch from drone to actions (#363)
Reviewed-on: #363
Co-authored-by: Magnus Walbeck <mw@mwalbeck.org>
Co-committed-by: Magnus Walbeck <mw@mwalbeck.org>
2025-02-01 16:51:16 +00:00

37 lines
914 B
YAML

name: Test
on: pull_request
jobs:
lint:
if: github.ref != 'refs/heads/renovate/*'
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: https://github.com/hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
test:
runs-on: dind
steps:
- uses: actions/checkout@v4
- name: Get docker tags
id: tags
shell: sh
env:
VERSION_TYPE: "docker_env"
APP_NAME: "CYBERCHEF"
DOCKERFILE_PATH: "Dockerfile"
CUSTOM_TAGS: "latest"
IMAGE_NAME: "mwalbeck/cyberchef"
run: |
determine-docker-tags
dockerd &
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Test build
uses: https://github.com/docker/build-push-action@v6
with:
tags: ${{ steps.tags.outputs.tags }}