Skip to content

don't want anyone thinking this is real now #122

don't want anyone thinking this is real now

don't want anyone thinking this is real now #122

Workflow file for this run

name: "Build and publish image to ghcr.io"
on:
push:
branches:
- main
env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
jobs:
build-and-push:
name: Build and push image
runs-on: ubuntu-latest
steps:
- name: Checkout Push to Registry action
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push to GHCR
id: build-and-push
run: |
nix build
skopeo copy docker-archive:./result docker://ghcr.io/ddellacosta/automation-service:latest