Skip to content

feat: use warp builder #7

feat: use warp builder

feat: use warp builder #7

Workflow file for this run

name: Build & Publish
on:
push:
branches: [main]
env:
IMAGE_NAME: ghcr.io/fuellabs/dr-cla
jobs:
build:
runs-on: warp-ubuntu-latest-x64-4x
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# create a unique tag for each build
- name: Set Docker tag
id: date
run: echo "DATE_STAMP=$(date +%s)" > "$GITHUB_ENV"
- name: Build and push Docker images
uses: ./.github/actions/nixpacks
with:
push: true
cache: true
platforms: "linux/amd64,linux/arm64"
cache_tag: ${{ env.IMAGE_NAME }}:cache
tags: |
${{ env.IMAGE_NAME }}:${{ env.DATE_STAMP }}
${{ env.IMAGE_NAME }}:latest