fix: finish!

This commit is contained in:
2024-11-19 20:02:49 -05:00
parent a677416722
commit 91741b38a1

View File

@@ -3,7 +3,10 @@ name: Build OCI Image
on:
workflow_dispatch:
push:
branches: main
branches:
- main
tags:
- 'v*'
jobs:
docker:
@@ -21,29 +24,18 @@ jobs:
type=sha
type=ref,event=branch
# - name: Login to Harbor
# uses: docker/login-action@v3
# with:
# registry: harbor.yadunut.dev
# username: ${{ secrets.HARBOR_USERNAME }}
# password: ${{ secrets.HARBOR_PASSWORD }}
- name: Set up Docker Context for Buildx
id: buildx-context
run: |
export DOCKER_HOST=tcp://docker:2376/
export DOCKER_TLS_CERTDIR="/certs"
export DOCKER_TLS_VERIFY=1
export DOCKER_CERT_PATH="/certs/client"
docker context create builders
- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: harbor.yadunut.dev
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
# with:
# endpoint: builders
# - name: Build and push
# uses: docker/build-push-action@v6
# with:
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}