Skip to content

Bump actions/checkout from 3 to 4 #62

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #62

Workflow file for this run

name: Distro
on:
workflow_dispatch:
push:
env:
TAG_NAME: ${{ format('wslvpnkit:{0}-{1}', github.sha, github.run_number) }}
RUN_URL: ${{ format('{0}/{1}/actions/runs/{2}/attempts/{3}', github.server_url, github.repository, github.run_id, github.run_attempt) }}
DOCKLE_HOST: "unix:///var/run/docker.sock" # https://github.com/Azure/container-scan/issues/146
jobs:
build:
runs-on: ubuntu-20.04
permissions:
checks: write
steps:
- uses: actions/checkout@v4
- name: Build
run: |
docker build -t $TAG_NAME -f ./distro/alpine.dockerfile --build-arg REF=$RUN_URL --build-arg VERSION=${GITHUB_REF#refs/tags/} .
- uses: anchore/scan-action@v3
with:
image: ${{ env.TAG_NAME }}
- name: Package
run: |
CONTAINER_ID=$(docker create $TAG_NAME)
docker export $CONTAINER_ID | gzip > wsl-vpnkit.tar.gz
sha256sum wsl-vpnkit.tar.gz | tee wsl-vpnkit.tar.gz.sha256
ls -la wsl-vpnkit.tar.gz
- name: Artifacts
uses: actions/upload-artifact@v3
with:
name: wsl-vpnkit
path: |
wsl-vpnkit.tar.gz
wsl-vpnkit.tar.gz.sha256