Skip to content

Update apolo settings #38

Update apolo settings

Update apolo settings #38

Workflow file for this run

name: CI
on:
push:
branches: [apolo]
tags: ["v*"]
pull_request:
branches: [apolo]
jobs:
release:
name: Release image
runs-on: ubuntu-latest
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
steps:
- name: Checkout commit
uses: actions/checkout@v4
- name: Login to ghcr.io
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build Docker image
run: make build-image
- name: Release development image
run: |
export IMAGE_TAG=development
make push-image
- name: Release production image
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
run: |
export IMAGE_TAG=${GITHUB_REF#refs/tags/v}
make push-image
export IMAGE_TAG=latest
make push-image