Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,40 @@ name: Publish
on:
push:
branches:
- main
- develop
tags:
- "*"
workflow_dispatch:
inputs:
docker_tag:
description: "Tag suffix; will be used as seedplatform/bsyncr-server:{docker_tag}"
required: true

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Parse tag
id: parse_tag
run: |
Expand All @@ -47,7 +61,9 @@ jobs:
exit 1
fi
echo "bsyncr_server_tags=${BSYNCR_TAG}" >> $GITHUB_OUTPUT
- name: Build and push
echo "BSYNCR_TAG=${BSYNCR_TAG}"

- name: Build and push multi-arch image
id: docker_build
uses: docker/build-push-action@v5
with:
Expand Down
9 changes: 9 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,31 @@
"balancepoint",
"bsync",
"bsyncr",
"buildx",
"crul",
"dataframe",
"datatypeid",
"docker",
"DOCKERHUB",
"dplyr",
"Drybulb",
"elec",
"elif",
"ensurepip",
"esac",
"libv",
"libxmlsec",
"NMEC",
"nmecr",
"NOAA",
"noaakey",
"PYENV",
"PYTHONDONTWRITEBYTECODE",
"PYTHONUNBUFFERED",
"RMPA",
"rnoaa",
"schematron",
"seedplatform",
"testthat",
"tidyr"
],
Expand Down