Skip to content

Bump lemmy-js-client from 0.19.4-alpha.18 to 0.20.0-alpha.1 #87

Bump lemmy-js-client from 0.19.4-alpha.18 to 0.20.0-alpha.1

Bump lemmy-js-client from 0.19.4-alpha.18 to 0.20.0-alpha.1 #87

Workflow file for this run

name: Publish Docker Image
on: [push, pull_request]
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Build
- name: Build image
run: |
[[ $GITHUB_REF_NAME = "main" ]] && TAG="latest" || TAG=$GITHUB_REF_NAME
TAG="${TAG//\//$'-'}"
docker build . --file Dockerfile --tag ghcr.io/"${GITHUB_REPOSITORY,,}":$TAG
# Push
- name: Push image
run: |
[[ $GITHUB_REF_NAME = "main" ]] && TAG="latest" || TAG=$GITHUB_REF_NAME
TAG="${TAG//\//$'-'}"
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_REPOSITORY_OWNER --password-stdin
docker push ghcr.io/"${GITHUB_REPOSITORY,,}":$TAG