Skip to content

UI Release

UI Release #4

Workflow file for this run

name: UI Release
on: workflow_dispatch
env:
IMAGE: saferwall/ui
jobs:
docker-release:
runs-on: ubuntu-22.04
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate build version
id: prep
run: |
version=$(cat VERSION)
echo "BUILD_VERSION=${version}" >>$GITHUB_OUTPUT
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:${{ steps.prep.outputs.BUILD_VERSION }}