Unzip with workers #2
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
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} |