mirror of https://github.com/1N3/Sn1per.git
27 lines
583 B
YAML
27 lines
583 B
YAML
name: ci
|
|
|
|
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 . --tag ghcr.io/abnerrizzi/store:latest
|
|
docker push ghcr.io/abnerrizzi/store:latest
|