Skip to content

LocalFileSharing v0.1.4 #4

LocalFileSharing v0.1.4

LocalFileSharing v0.1.4 #4

Workflow file for this run

name: Release
on:
release:
types: [prereleased, released]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Echo
run: echo "releasing:${{ env.RELEASE_VERSION }}"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/localfilesharing:latest
${{ secrets.DOCKERHUB_USERNAME }}/localfilesharing:${{ env.RELEASE_VERSION }}
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/localfilesharing:latest
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/localfilesharing:${{ env.RELEASE_VERSION }}