Skip to content

Commit

Permalink
Merge pull request #1 from jalapeno-api-gateway/add-container-action
Browse files Browse the repository at this point in the history
add build and push container action
  • Loading branch information
severindellsperger authored Feb 5, 2024
2 parents d6ed4d4 + 31be671 commit 781743c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 69 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/arango_basic_test.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build and Push Container


on:
push:
tags: [ 'v*.*.*' ]

permissions:
contents: read
packages: write

jobs:
build_topology_processor:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build topology processor
run: |
make -f ./Makefile.topology topology
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push topology processor
uses: docker/build-push-action@v5
with:
context: .
file: ./build/Dockerfile.topology
push: true
tags: ghcr.io/${{ github.repository }}/topology:${{ github.ref_name }}

build_linkstate-edge_processor:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build linkstate-edge processor
run: |
make -f ./Makefile.linkstate-edge linkstate-edge
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push topology processor
uses: docker/build-push-action@v5
with:
context: .
file: ./build/Dockerfile.linkstate-edge
push: true
tags: ghcr.io/${{ github.repository }}/lslinknode-edge:${{ github.ref_name }}
40 changes: 0 additions & 40 deletions .github/workflows/minimal-spinup.yml

This file was deleted.

0 comments on commit 781743c

Please sign in to comment.