Skip to content

Commit

Permalink
Add GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tpai committed Mar 15, 2024
1 parent 8bf3223 commit dc01e10
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build the Docker image
run: docker build . --file Dockerfile --tag tonypai/summary-gpt-bot:$(echo $GITHUB_REF | rev | cut -d/ -f1 | rev)

- name: Docker login
run: docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}

- name: Push Docker image
run: docker push tonypai/summary-gpt-bot:$(echo $GITHUB_REF | rev | cut -d/ -f1 | rev)

0 comments on commit dc01e10

Please sign in to comment.