Skip to content

Commit

Permalink
Add build container workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lmartinking committed Mar 20, 2024
1 parent 0bac0a3 commit 354ab65
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build Container

on: [push]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- 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: |
TAG="ghcr.io/lmartinking/duckbot:{{ github.sha }}"
docker build . --tag ${TAG}
docker push ${TAG}

0 comments on commit 354ab65

Please sign in to comment.