Skip to content

Fixing the edgerouter source #18

Fixing the edgerouter source

Fixing the edgerouter source #18

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Router
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: ./router/go.sum
- name: Build MMS Router
run: go build
working-directory: ./router
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
file: docker/Dockerfile.router
tags: ghcr.io/gla-rad/mc-mms-router
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}