Skip to content

Update Dockerfile

Update Dockerfile #4

Workflow file for this run

name: OpenWRT Image Build
on:
push:
branches: ['release', 'main']
paths:
- Dockerfile
- devices/**
pull_request:
branches: [ "main" ]
paths:
- Dockerfile
- devices/**
env:
REGISTRY: ghcr.io
IMAGE_NAME: "openwrt-image"
jobs:
OpenWRT-Image-Build:
#runs-on: ubuntu-latest
runs-on: jenkins
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/NinuxBasilicata/${{ env.IMAGE_NAME }}
- name: Build image
uses: docker/[email protected]
with:
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=local,dest=image
build-args: SHOULD_ADD_HAASMESH=1
- name: Archive Built router image
uses: actions/upload-artifact@v3
with:
name: ${{ env.IMAGE_NAME }}
path: image