Create Docker image build action

This commit is contained in:
Matthew Lopez 2023-12-15 16:40:20 -05:00 committed by GitHub
parent bfb5d01353
commit d1f48199ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

24
.github/workflows/docker.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Build Docker image
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --tag mitmproxy-pretendo
- name: Save the Docker image
run: docker save mitmproxy-pretendo -o mitmproxy-pretendo.tar
- name: Upload the Docker image
uses: actions/upload-artifact@v4
with:
name: mitmproxy-pretendo-docker-image-${{ github.sha }}
path: mitmproxy-pretendo.tar