Skip to content

Workflow file for this run

name: Server to Docker hub on Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get the version
id: get_version
uses: battila7/get-version-action@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./server/
push: true
platforms: linux/amd64,linux/arm64
tags: |
rabbitcompany/passky-server:${{steps.get_version.outputs.version-without-v}}
rabbitcompany/passky-server:${{steps.get_version.outputs.major}}