Skip to content

Merge branch 'feat/merged-weight-copying' of github.com:agicommies/su… #329

Merge branch 'feat/merged-weight-copying' of github.com:agicommies/su…

Merge branch 'feat/merged-weight-copying' of github.com:agicommies/su… #329

Workflow file for this run

name: Build and push Docker image
on:
push:
branches: [main, feat/merged-weight-copying]
tags:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-n-push:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: commit
uses: prompt/actions-commit-hash@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
build-args: |
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}
SCCACHE_BUCKET=agicommies-subspace-cache
SCCACHE_ENDPOINT=${{ vars.SCCACHE_ENDPOINT }}
SCCACHE_REGION=auto
push: true
tags: |
ghcr.io/renlabs-dev/subspace:${{ steps.commit.outputs.short }}