Skip to content

Add qa parameter on activate #120

Add qa parameter on activate

Add qa parameter on activate #120

Workflow file for this run

name: Docker internal build
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- main
- staging
jobs:
test:
name: Test & coverage
uses: ./.github/workflows/ci.yml
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
needs: test
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository }}
- name: Login to Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF##*/}
- name: Build and push Docker image
uses: docker/build-push-action@v2.3.0
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: |
VERSION=${{ steps.vars.outputs.tag }}
context: ./