Skip to content

Commit

Permalink
trying depot.dev for building
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar Oostendorp committed Feb 17, 2024
1 parent 47e1ebf commit d5285c2
Showing 1 changed file with 20 additions and 40 deletions.
60 changes: 20 additions & 40 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,26 @@ jobs:
- name: Set up Depot CLI
uses: depot/setup-action@v1

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=pr
type=semver,pattern={{version}}
type=sha
- uses: depot/build-push-action@v1
with:
context: .
Expand All @@ -38,46 +58,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# if no depot.json file is at the root of your repo, you must specify the project id
# project: r77bmfc7vx
# Pass project token or user access token if you're not using OIDC token authentication
# token: ${{ secrets.DEPOT_TOKEN }}

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
#
# - name: Log in to the Container registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v5
# with:
# # list of Docker images to use as base name for tags
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# # generate Docker tags based on the following events/attributes
# tags: |
# type=schedule
# type=ref,event=pr
# type=semver,pattern={{version}}
# type=sha
#
# - name: Build and push Docker image
# uses: docker/build-push-action@v5
# with:
# context: .
# build-args: DOJO_VERSION=${{ env.DOJO_VERSION }}
# push: true
# platforms: linux/amd64,linux/arm64
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max

- name: Create GitHub Release
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit d5285c2

Please sign in to comment.