Skip to content

Commit

Permalink
Merge pull request #461 from range-of-motion/automate-building-and-pu…
Browse files Browse the repository at this point in the history
…shing-of-docker-image

Automate building and pushing of Docker image
  • Loading branch information
range-of-motion authored Dec 9, 2023
2 parents 10fd2ae + c0749b7 commit ba98076
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Docker

on:
release:
types: [published]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: TAG=${{ github.event.release.tag_name }} && docker buildx build --push --platform linux/amd64,linux/arm64 --tag rangeofmotion/budget:${TAG#v} -f docker/Dockerfile .

0 comments on commit ba98076

Please sign in to comment.