Skip to content

Add nginx headers more #7

Add nginx headers more

Add nginx headers more #7

Workflow file for this run

name: 'Deploy'
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Set image tag'
id: tag
run: |
REF=${{ github.ref }};
TAG_FULL=${REF#refs/*/};
IMAGE_TAG=${TAG_FULL//\//_};
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
echo "image_tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v2
- name: 'Login to Docker Hub'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_LOGIN }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: 'Build and push'
uses: docker/build-push-action@v4
with:
push: true
tags: flipperdevices/flipper-tilda-webserver:${{steps.tag.outputs.image_tag}}