Commit 9da339c6 authored by Adriana Fernández-Fernández's avatar Adriana Fernández-Fernández
Browse files

Add github workflows

parent 6caf361e
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
name: Build Docker Image

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3

      - name: Log in to GitHub Container Registry (GHCR)
        uses: docker/login-action@v3
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Build Docker image
        run: |
          docker build -t ghcr.io/sunriseopenoperatorplatform/federation-manager:0.0.1 .

      - name: Push Docker image
        run: |
          docker push ghcr.io/sunriseopenoperatorplatform/federation-manager:0.0.1