Skip to content

Removes pre-2.7 flake compatibility (per #10) #44

Removes pre-2.7 flake compatibility (per #10)

Removes pre-2.7 flake compatibility (per #10) #44

Workflow file for this run

name: docker
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-release-migrate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: dockermetadata
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/peterldowns/nix-search-cli
tags: |
# short sha of the commit
type=sha,prefix=,suffix=,format=short
# long sha of the commit
type=sha,prefix=,suffix=,format=long
# "latest"
type=raw,value=latest
- uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.dockermetadata.outputs.tags }}
labels: ${{ steps.dockermetadata.outputs.labels }}