Some checks failed
Publish / build_and_publish_docker_image (push) Failing after 22s
34 lines
788 B
YAML
34 lines
788 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- insanity
|
|
|
|
jobs:
|
|
build_and_publish_docker_image:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to Docker Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.marinodev.com
|
|
username: ${{ vars.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Set package name
|
|
run: |
|
|
BRANCH=${GITHUB_REF##*/}
|
|
echo "PACKAGE_NAME=moni-live-yolk-$BRANCH" >> $GITHUB_ENV
|
|
|
|
- name: Build and Push Docker Image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags: git.marinodev.com/drake/${{PACKAGE_NAME}}:latest
|