Skip to content

SPAship puzzle build and push into container repository #110

SPAship puzzle build and push into container repository

SPAship puzzle build and push into container repository #110

Workflow file for this run

name: SPAship puzzle build and push into container repository
on:
push:
branches:
- 'master'
- 'main'
- 'test'
- 'qa'
- 'dev'
- 'fix/**'
- 'feat/**'
workflow_dispatch:
inputs:
version:
default: v1.0.0
description: Bump Version
required: true
jobs:
push_to_registry:
name: Push Docker image to Registries
env:
IMAGE_NAME: 'puzzle'
REGISTRY_NAMESPACE: 'spaship'
runs-on: ubuntu-latest
steps:
- name: Inject slug/short variables
uses: rlespinasse/[email protected]
- name: Check out the repo
uses: actions/checkout@v2
- name: Login to Quay.io
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.CI_QUAY_USERNAME }}
password: ${{ secrets.CI_QUAY_TOKEN }}
- name: Build and push into repository
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: |
quay.io/${{ env.REGISTRY_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{env.GITHUB_REF_SLUG}}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}