Skip to content

nit: minor change

nit: minor change #3

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: repo-basename
run: |
echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT
shell: bash
- name: Docker login
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build -t bkataru/impulses:${{ steps.repo-basename.outputs.value }} .devcontainer/
- name: Push the Docker image
run: docker push bkataru/impulses:${{ steps.repo-basename.outputs.value }}