Skip to content

Commit

Permalink
👷 Automate release build with GitHub actions and Docker closes #53
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Fihlon <[email protected]>
  • Loading branch information
McPringle committed Apr 10, 2024
1 parent c49b9c5 commit e656004
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docker Release

on:
# This can be used to automatically publish releases
release:
types: [created]
# This can be used to allow manually triggering nightlies from the web interface
workflow_dispatch:

jobs:
docker:
if: github.repository_owner == 'McPringle'
runs-on: ubuntu-latest
name: Docker Release

steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
ref: ${{ github.ref }
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: mcpringle/apus:${{ github.ref }}

0 comments on commit e656004

Please sign in to comment.