diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml new file mode 100644 index 0000000..5dbd884 --- /dev/null +++ b/.github/workflows/build-container.yml @@ -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} +