-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,6 @@ on: | |
type: boolean | ||
required: false | ||
default: false | ||
update-conda: | ||
description: Whether to update Conda packages | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
docker: | ||
|
@@ -41,32 +36,15 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# - name: Login to GitHub Container Registry | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Login to Docker Registry | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# username: ${{ vars.DOCKER_USERNAME }} | ||
# password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
# - name: Setup Pixi | ||
# if: inputs.target != 'base' && inputs.update-conda | ||
# uses: prefix-dev/[email protected] | ||
# with: | ||
# run-install: false | ||
|
||
# - name: Update Conda packages | ||
# if: inputs.target != 'base' && inputs.update-conda | ||
# shell: bash | ||
# run: pixi update | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Set up QEMU | ||
# uses: docker/setup-qemu-action@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
@@ -80,19 +58,17 @@ jobs: | |
type=schedule,pattern={{date 'YYYY-MM-DD'}} | ||
type=sha | ||
- name: Test Bake | ||
run: | | ||
docker buildx bake \ | ||
-f docker-bake.hcl \ | ||
-f ${{ steps.meta.outputs.bake-file-labels }} \ | ||
--print \ | ||
${{ inputs.target }} | ||
- name: Test Bakefile | ||
run: docker buildx bake --print -f docker-bake.hcl -f ${{ steps.meta.outputs.bake-file-labels }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAGS: ${{ steps.meta.outputs.tags }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Build and push | ||
# uses: docker/bake-action@v5 | ||
# with: | ||
# files: docker-bake.hcl,${{ steps.meta.outputs.bake-file }} | ||
# files: docker-bake.hcl,${{ steps.meta.outputs.bake-file-labels }} | ||
# targets: ${{ inputs.target }} | ||
# push: true | ||
# env: | ||
# TAGS: ${{ steps.meta.outputs.tags }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters