Skip to content

testing release image generation from push to main #1

testing release image generation from push to main

testing release image generation from push to main #1

name: Docker Image CI
on:
push:
branches: [ "main" ]
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/${{ github.repository_owner }}/cr-tests:latest
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push the Docker image
run: docker push ghcr.io/${{ github.repository_owner }}/cr-tests:latest