Skip to content

Changes to the ipv4 connectivity task: #88

Changes to the ipv4 connectivity task:

Changes to the ipv4 connectivity task: #88

Workflow file for this run

name: Release
on:
push:
tag:
- '*'
jobs:
version:
runs-on: ubuntu-latest
outputs:
major: ${{ steps.major.outputs.major }}
minor: ${{ steps.minor.outputs.minor }}
steps:
- id: major
run: echo "major=$([[ ${{github.ref_name}} =~ ([0-9]*) ]] && echo ${BASH_REMATCH[1]})" >> "$GITHUB_OUTPUT"
- id: minor
run: |
MINOR=$([[ ${{github.ref_name}} =~ [0-9]*.([0-9]*) ]] && echo ${BASH_REMATCH[1]})
SUBMINOR=$([[ ${{github.ref_name}} =~ [0-9]*.[0-9]*.([0-9]*) ]] && echo ${BASH_REMATCH[1]})
let "MINOR = 65536 * ${SUBMINOR} + ${MINOR}"
echo "minor=${MINOR}" >> "$GITHUB_OUTPUT"
build-debian-package-jammy:
name: build-image
runs-on: ubuntu-latest
needs: [version]
permissions:
packages: write
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: yanetplatform/yanet
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./build/Dockerfile.image
build-args: |
YANET_VERSION_MAJOR=${{needs.version.outputs.major}}
YANET_VERSION_MINOR=${{needs.version.outputs.minor}}
YANET_VERSION_REVISION=${{github.run_number}}
YANET_VERSION_HASH=${{github.sha}}
YANET_VERSION_CUSTOM=stable
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}