Skip to content

Commit

Permalink
Create Docker image build action
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 authored Dec 15, 2023
1 parent bfb5d01 commit d1f4819
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d1f4819

Please sign in to comment.