Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace PR docker dry run in drone with Actions #24475

Merged
merged 3 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1306,43 +1306,6 @@ steps:
exclude:
- pull_request

---
kind: pipeline
type: docker
name: docker-linux-arm64-dry-run

platform:
os: linux
arch: arm64

depends_on:
- compliance

trigger:
event:
- pull_request
paths:
exclude:
- "docs/**"

steps:
- name: dryrun
image: plugins/docker:latest
pull: always
settings:
dry_run: true
repo: gitea/gitea
tags: linux-arm64
build_args:
- GOPROXY=https://goproxy.io
environment:
PLUGIN_MIRROR:
from_secret: plugin_mirror
DOCKER_BUILDKIT: 1
when:
event:
- pull_request

---
kind: pipeline
type: docker
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/pull-docker_dryrun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Docker build dry run

on: [pull_request]

jobs:
docker_dryrun:
runs-on: ubuntu-latest
silverwind marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
push: false
tags: gitea/gitea:linux-arm64
build-args: |
GOPROXY=https://goproxy.io
silverwind marked this conversation as resolved.
Show resolved Hide resolved