Skip to content

chore: Update environment to "Staging" in build workflow #7

chore: Update environment to "Staging" in build workflow

chore: Update environment to "Staging" in build workflow #7

Workflow file for this run

on:
push:
# branches:
# - main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ghcr.io/akdasa-studios/lectorium-gateway
IMAGE_TAG: ${{ github.sha }}
jobs:
build-gateway:
name: Build Gateway
runs-on: ubuntu-latest
environment: Staging
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./modules/services/gateway
push: true
tags: |
ghcr.io/akdasa-studios/lectorium-gateway:${{ env.IMAGE_TAG }}
ghcr.io/akdasa-studios/lectorium-gateway:staging