Skip to content

run workflow on docker-ci branch #4

run workflow on docker-ci branch

run workflow on docker-ci branch #4

Workflow file for this run

name: Docker Image CI
on:
push:
branches: ["develop", "docker-ci"]
pull_request:
branches: ["develop"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ env.registry }}/${{ env.IMAGE_NAME }}:test
- name: Push the Docker image
run: docker push ${{ env.registry }}/${{ env.IMAGE_NAME }}:test