Skip to content

Commit

Permalink
add gha build (#1)
Browse files Browse the repository at this point in the history
* add gha build

* fix uses syntax

* remove unwanted lint

* remove PR

* push latest as well

* push all tags

* fix image push
  • Loading branch information
SathyaBhat committed Aug 29, 2023
1 parent 56124a3 commit 43a1190
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Docker
on: [push]

jobs:

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

steps:
- name: Checkout
uses: actions/checkout@v3

- 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 -a

0 comments on commit 43a1190

Please sign in to comment.