Skip to content

Commit

Permalink
add gha build
Browse files Browse the repository at this point in the history
  • Loading branch information
SathyaBhat committed Aug 29, 2023
1 parent 56124a3 commit 49ace98
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint and build Docker
on: [push, pull_request]

jobs:

docker-build:
timeout-minutes: 10
runs-on: ubuntu-latest
needs: lint

steps:
- name: Checkout
uses: actions/checkout

- name: Build Docker Image
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

run: |
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
docker build -t ${DOCKER_USERNAME}/ynab-exporter:${GITHUB_SHA} -t ${DOCKER_USERNAME}/ynab-exporter:latest .
docker push ${DOCKER_USERNAME}/ynab-exporter:${GITHUB_SHA}

0 comments on commit 49ace98

Please sign in to comment.