Skip to content

Add CARGO_NET_GIT_FETCH_WITH_CLI #14

Add CARGO_NET_GIT_FETCH_WITH_CLI

Add CARGO_NET_GIT_FETCH_WITH_CLI #14

#
name: Container Push
on:
push:
branches:
- main
pull_request:
# This creates an environment variable called `IMAGE_NAME ` with the value `ghtoken_product_demo`.
env:
IMAGE_NAME: marvin2
# https://github.com/docker/build-push-action/issues/621
CARGO_NET_GIT_FETCH_WITH_CLI: true
#
jobs:
# This pushes the image to GitHub Packages.
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: hacksocnotts/marvin2:latest