Florian Hoss
2fb503abc8
Some checks failed
Build and Push Docker Image / build (push) Failing after 3s
34 lines
873 B
YAML
34 lines
873 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
REGISTRY: git.unjx.de
|
|
LATEST_IMAGE: ${{ env.REGISTRY }}/${{ github.repository }}:latest
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ github.token }}
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags: ${{ env.LATEST_IMAGE }}
|
|
build-args: |
|
|
V_GOLANG=${{ vars.V_GOLANG }}
|
|
V_NODE=${{ vars.V_NODE }}
|
|
V_ALPINE=${{ vars.V_ALPINE }}
|