Skip to content

Commit

Permalink
test out depot.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Aug 29, 2024
1 parent d8eda0e commit b3727c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/actions/docker-custom-build-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ outputs:
image_tag:
description: "Docker image tags"
value: ${{ steps.docker_meta.outputs.tags }}
# image_name: ${{ env.DATAHUB_GMS_IMAGE }}

runs:
using: "composite"
Expand Down Expand Up @@ -74,10 +73,8 @@ runs:
load: true
push: false
cache-from: |
type=gha,scope=${{ inputs.file }}-${{ inputs.flavor }}
type=registry,ref=${{ steps.docker_meta.outputs.tags }}
cache-to: |
type=gha,scope=${{ inputs.file }}-${{ inputs.flavor }}
type=inline
- name: Single Tag
if: ${{ inputs.publish != 'true' }}
Expand All @@ -98,22 +95,24 @@ runs:
image: ${{ steps.single_tag.outputs.SINGLE_TAG }}

# Code for building multi-platform images and pushing to Docker Hub.
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
if: ${{ inputs.publish == 'true' }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
if: ${{ inputs.publish == 'true' }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# if: ${{ inputs.publish == 'true' }}
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# if: ${{ inputs.publish == 'true' }}
- name: Login to DockerHub
uses: docker/login-action@v3
if: ${{ inputs.publish == 'true' }}
with:
username: ${{ inputs.username }}
password: ${{ inputs.password }}
- name: Build and Push Multi-Platform image
uses: docker/build-push-action@v6
# uses: docker/build-push-action@v6
uses: depot/build-push-action@v1
if: ${{ inputs.publish == 'true' }}
with:
project: s0gr1cr3jd
context: ${{ inputs.context }}
file: ${{ inputs.file }}
platforms: ${{ inputs.platforms }}
Expand All @@ -122,10 +121,8 @@ runs:
target: ${{ inputs.target }}
push: true
cache-from: |
type=gha,scope=${{ inputs.file }}-${{ inputs.flavor }}
type=registry,ref=${{ steps.docker_meta.outputs.tags }}
cache-to: |
type=gha,scope=${{ inputs.file }}-${{ inputs.flavor }}
type=inline
# TODO add code for vuln scanning?
4 changes: 4 additions & 0 deletions .github/workflows/docker-unified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ env:
DATAHUB_INGESTION_BASE_IMAGE: "acryldata/datahub-ingestion-base"
DATAHUB_INGESTION_IMAGE: "acryldata/datahub-ingestion"

permissions:
contents: read
id-token: write

jobs:
setup:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b3727c0

Please sign in to comment.