Skip to content

Update dependency syncthing/syncthing to v1.27.9 #67

Update dependency syncthing/syncthing to v1.27.9

Update dependency syncthing/syncthing to v1.27.9 #67

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set variables
id: vars
run: |
PKGVER=$(grep ENV Dockerfile | cut -d" " -f 3)
echo "PKGVER=$PKGVER" >> $GITHUB_ENV
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/syncthing-relay:${{ env.PKGVER }},${{ secrets.DOCKERHUB_USERNAME }}/syncthing-relay:latest