Skip to content

test build and push

test build and push #7

name: build and push
on:
push:
branches:
- main
- gh-action
jobs:
docker:
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 . -f Dockerfile.base --tag ghcr.io/abnerrizzi/${{ github.event.repository.name }}:latest
docker push ghcr.io/abnerrizzi/${{ github.event.repository.name }}:latest