Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
Removed excess build steps
  • Loading branch information
N-Storm authored Apr 12, 2024
1 parent 8d78453 commit 16b18a5
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,18 @@
---
name: Docker Image CI
name: Build BoringTun packages

on:
push:
branches: ["master", "N-Storm-CI-boringtun-packages"]
branches: [ "master" ]
pull_request:
branches: ["master", "N-Storm-CI-boringtun-packages"]
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.1.1
- name: Build the Docker image
run: docker build --file build/Dockerfile --tag boringtun-builds:$(date +%s) build/

# - uses: actions/checkout@v3
- name: Build & extract the BoringTun packages.
- name: Checkout repo
uses: actions/checkout@v4
- name: Build BoringTun packages.
run: cd build; bash ./BUILD.sh

- uses: actions/cache@v4.0.1
name: Cache package files
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: build/packages/*
# An explicit key for restoring and saving the cache
key: boringtun-packages
restore-keys: boringtun-packages
# The chunk size used to split up large files during upload, in bytes
upload-chunk-size: 500000 # optional
# An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms
enableCrossOsArchive: true # optional, default is false
# Run the post step to save the cache even if another step before fails
save-always: false # optional, default is false

0 comments on commit 16b18a5

Please sign in to comment.