Skip to content

Merge pull request #6182 from deNBI/deps/peter-evans-create-pull-requ… #242

Merge pull request #6182 from deNBI/deps/peter-evans-create-pull-requ…

Merge pull request #6182 from deNBI/deps/peter-evans-create-pull-requ… #242

Workflow file for this run

name: Create Release Image
on:
push:
tags:
- '*'
jobs:
build_release:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build and publish image to Quay
uses: docker/build-push-action@v6
with:
file: Dockerfile
push: true
tags: quay.io/denbicloud/cloud-portal-webapp:${{ steps.get_version.outputs.VERSION }}