Skip to content

DateTime bug fixed. #14

DateTime bug fixed.

DateTime bug fixed. #14

name: Build and upload the ae-substracking-interface Docker image
on:
push:
branches:
- main
tags:
- v*.*.*
release:
types:
- published
env:
IMAGE_NAME: submissions-tracking-interface
jobs:
deploy:
name: Build and deploy image to quay.io/ebigxa
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Read tag
id: gettag
run: echo ::set-output name=tag::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: latest ${{ steps.gettag.outputs.tag }}
dockerfiles: |
./Dockerfile
- name: Push to Quay
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/ebigxa
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Use the image
run: echo "New image has been pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"