Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TibiNonEst committed Aug 10, 2023
1 parent 99f074c commit 0c3770c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Build and Publish
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- run: docker build -t ghcr.io/quiltmc/javadoc-publish:latest -t ghcr.io/quiltmc/javadoc-publish:${GITHUB_SHA} .
- run: docker push ghcr.io/quiltmc/javadoc-publish:latest
- run: docker push ghcr.io/quiltmc/javadoc-publish:${GITHUB_SHA}

0 comments on commit 0c3770c

Please sign in to comment.