REFINE docker steps
This commit is contained in:
parent
3bae954473
commit
e7a20f2ca7
12
.github/workflows/image_creation.yaml
vendored
12
.github/workflows/image_creation.yaml
vendored
@ -19,11 +19,6 @@ jobs:
|
||||
|
||||
- name: Set Up BuildX
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
config-inline: |
|
||||
[registry."${{ vars.GITEAINSTANCE }}"]
|
||||
http = true
|
||||
insecure = true
|
||||
|
||||
- name: Login to Docker
|
||||
uses: docker/login-action@v3
|
||||
@ -32,6 +27,10 @@ jobs:
|
||||
username: ${{ vars.USERNAME }}
|
||||
password: ${{ secrets.PWD }}
|
||||
|
||||
- name: calculate short sha
|
||||
run: |
|
||||
echo "shortsha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
@ -39,3 +38,6 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: git.maximotejeda.com/maximo/ddns:${{ github.ref_name }}
|
||||
build-args:
|
||||
- version=${{ github.ref_name}}
|
||||
- SHORTSHA=${{ steps.vars.outputs.shortsha }}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
FROM golang:alpine AS builder
|
||||
ARG TARGETPLATFORM=no-set
|
||||
ARG BUILDPLATFORM=${BUILDPLATFORM:-linux/amd64}
|
||||
ARG version=not-set
|
||||
ARG SHORTSHA=not-set
|
||||
WORKDIR /app
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user