Skip to content

v0.0.76

v0.0.76 #38

Workflow file for this run

name: Deploy
on:
release:
types: [released]
jobs:
build-and-push-docker:
name: Build and push Docker image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate docker tags
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository }}/bffsrv
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern=v{{version}}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
context: .
file: bffsrv.Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
deploy-feeds:
needs: [build-and-push-docker]
name: Deploy Feeds
environment: production
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.23"
cache: false
- name: Deploy feeds
env:
BFF_HOSTNAME: feed.furryli.st
BLUESKY_USERNAME: furryli.st
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
run: go run ./cmd/bffctl/ -e production bsky publish-feeds