Skip to content

build 2024-05-27T12:10:14Z #126

build 2024-05-27T12:10:14Z

build 2024-05-27T12:10:14Z #126

Workflow file for this run

name: docker-build-push
on:
push:
tags-ignore:
- 'latest'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Extract branch name
run: echo "RELEASE_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: |
t4skforce/syncthing-discovery:latest
t4skforce/syncthing-discovery:${{ env.RELEASE_VERSION }}
ghcr.io/t4skforce/syncthing-discovery:latest
ghcr.io/t4skforce/syncthing-discovery:${{ env.RELEASE_VERSION }}