Skip to content

Added allowed headers #3

Added allowed headers

Added allowed headers #3

Workflow file for this run

name: Docker Image CI
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
else
echo ::set-output name=VERSION::latest
fi
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- 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.GHCR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
lotuxpunk/hestia:${{ steps.get_version.outputs.VERSION }}
lotuxpunk/hestia:latest
ghcr.io/lotuxpunk/hestia:${{ steps.get_version.outputs.VERSION }}
ghcr.io/lotuxpunk/hestia:latest