Skip to content

update dfx (#141)

update dfx (#141) #144

Workflow file for this run

name: Release
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
auto-optimise-store = true
keep-outputs = true
keep-derivations = true
- name: Cache nix
uses: cachix/cachix-action@v12
with:
name: effect-ts
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Setup direnv
uses: HatsuneMiku3939/direnv-action@v1
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/effect-ts/discord-bot
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.DEVBOX_KUBECONFIG }}
with:
args: apply --kustomize infra/overlays/prod
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.DEVBOX_KUBECONFIG }}
with:
args: rollout restart deployment discord-bot -n discord-bot