Skip to content

feat(deploy): add guide (#76) #15

feat(deploy): add guide (#76)

feat(deploy): add guide (#76) #15

Workflow file for this run

name: Docker CI (staging)
on:
push:
branches: [dev]
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- 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
run: |
docker build -f ./Dockerfile . --tag ${{ env.REGISTRY }}/fsr5-fhaachen/strichlistensystem:dev
docker push ${{ env.REGISTRY }}/fsr5-fhaachen/strichlistensystem:dev