This commit is contained in:
parent
c9646bd2c8
commit
f3ae0a4b3c
@ -4,6 +4,11 @@ on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
REGISTRY: git.ivanli.cc
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
@ -39,36 +44,6 @@ jobs:
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
|
||||
- name: Archive Executable Binary
|
||||
uses: https://github.com/actions/upload-artifact@v3
|
||||
with:
|
||||
path: ./target/release/network-monitor
|
||||
name: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }}
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
needs: build
|
||||
|
||||
env:
|
||||
REGISTRY: git.ivanli.cc
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get Commit Tag
|
||||
id: tag
|
||||
uses: https://github.com/Maxyme/get-release-or-tag@v2
|
||||
|
||||
- name: Download Executable Binary
|
||||
uses: https://github.com/actions/download-artifact@v3
|
||||
with:
|
||||
path: ./target/release/network-monitor
|
||||
name: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }}
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: https://github.com/docker/login-action@v2
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user