Skip to content

Commit

Permalink
Merge pull request #1 from austinlparker/addGitHubAction
Browse files Browse the repository at this point in the history
add build action
  • Loading branch information
puckpuck authored Oct 13, 2023
2 parents d0fc0b6 + 2023801 commit 9d2f636
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Publish Docker Image

on:
release:
types: [ published ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: puckpuck/seashell:${{ github.event.release.tag_name }}
platforms: linux/amd64,linux/arm64

0 comments on commit 9d2f636

Please sign in to comment.