feat: add push docker image func
Some checks failed
Build Docker Container / Build-Container-Image (push) Failing after 30s
Some checks failed
Build Docker Container / Build-Container-Image (push) Failing after 30s
This commit is contained in:
parent
8428ecab2e
commit
f1f1257051
@ -11,7 +11,7 @@ jobs:
|
|||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
gitea.example.com/xyz/alpine
|
git.dev-null.rocks/alexohneander/alexohneander-zola
|
||||||
tags: |
|
tags: |
|
||||||
type=schedule,pattern={{date 'YYYYMMDDHHMM'}}
|
type=schedule,pattern={{date 'YYYYMMDDHHMM'}}
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
@ -40,11 +40,22 @@ jobs:
|
|||||||
DOCKER_TLS_VERIFY: 1
|
DOCKER_TLS_VERIFY: 1
|
||||||
DOCKER_CERT_PATH: "/certs/client"
|
DOCKER_CERT_PATH: "/certs/client"
|
||||||
|
|
||||||
|
- name: Login to Gitea
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.dev-null.rocks
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.GA_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push the image
|
- name: Build and push the image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
context: containers/test
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: "tcp://docker:2376/"
|
DOCKER_HOST: "tcp://docker:2376/"
|
||||||
DOCKER_TLS_CERTDIR: "/certs"
|
DOCKER_TLS_CERTDIR: "/certs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user