Skip to content

chore(version): 0.4.1 #12

chore(version): 0.4.1

chore(version): 0.4.1 #12

Workflow file for this run

name: tag
on:
push:
tags:
- "*"
jobs:
publish-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Determine version
id: get_version
uses: battila7/get-version-action@v2
- name: Install nix
uses: cachix/install-nix-action@v15
with:
extra_nix_config: |
access-tokens = github=${{ secrets.GITHUB_TOKEN }}
extra-substituters = https://cache.garnix.io
extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
- name: build image
run: nix build .#server/image
- name: login to registry
env:
USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
PASSWORD: ${{ secrets.DOCKER_HUB_TOKEN }}
run: echo $PASSWORD | nix develop .#ci -c skopeo login docker.io -u $USERNAME --password-stdin
- name: push to docker
env:
VERSION: ${{ steps.get_version.outputs.version }}
run: nix develop .#ci -c skopeo copy docker-archive:result docker://justinrubek/rubek.dev:$VERSION --insecure-policy