Skip to content

Merge pull request #3 from baldator/main #1

Merge pull request #3 from baldator/main

Merge pull request #3 from baldator/main #1

Workflow file for this run

name: Build and push main image
on:
push:
branches:
- main
- dev
jobs:
push-store-image:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build Inventory Image'
run: |
docker build . --tag ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF##*/}
docker push ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF##*/}