Skip to content

0.0.2

0.0.2 #5

name: Publish release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: docker build . -t ghcr.io/yurvon-screamo/redfish-mockup-server:${{ github.event.release.tag_name }} -t ghcr.io/yurvon-screamo/redfish-mockup-server:latest
- name: Push Docker image
run: docker push ghcr.io/yurvon-screamo/redfish-mockup-server:${{ github.event.release.tag_name }} ghcr.io/yurvon-screamo/redfish-mockup-server:latest