-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 Automate release build with GitHub actions and Docker closes #53
Signed-off-by: Marcus Fihlon <[email protected]>
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |