chore(version): 0.4.1 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |