diff options
author | Jake Gold <52801504+Jacob2161@users.noreply.github.com> | 2023-03-20 14:41:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 14:41:15 -0700 |
commit | 67e4882bb372bc45d178e3eacc409cdbf60f1344 (patch) | |
tree | 13e3c015e91b5009597d9b610a9c6a40764cbfcc /.github/workflows/build-and-push-bskyweb-ghcr.yaml | |
parent | d8f4475696094382e2196ce259af358b65c849fb (diff) | |
download | voidsky-67e4882bb372bc45d178e3eacc409cdbf60f1344.tar.zst |
bskyweb additions (#296)
Add some minor bskyweb improvements, Mailmodo endpoint, Dockerfile for bskyweb, container image push
Diffstat (limited to '.github/workflows/build-and-push-bskyweb-ghcr.yaml')
-rw-r--r-- | .github/workflows/build-and-push-bskyweb-ghcr.yaml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/build-and-push-bskyweb-ghcr.yaml b/.github/workflows/build-and-push-bskyweb-ghcr.yaml new file mode 100644 index 000000000..5958874b8 --- /dev/null +++ b/.github/workflows/build-and-push-bskyweb-ghcr.yaml @@ -0,0 +1,56 @@ +name: build-and-push-bskyweb-ghcr +on: + push: + branches: + - main + - jake/bskyweb-additions +env: + REGISTRY: ghcr.io + USERNAME: ${{ github.actor }} + PASSWORD: ${{ secrets.GITHUB_TOKEN }} + + # github.repository as <account>/<repo> + IMAGE_NAME: ${{ github.repository }} + +jobs: + bskyweb-container-ghcr: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v1 + + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ env.USERNAME }} + password: ${{ env.PASSWORD }} + + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v4 + with: + images: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=sha,enable=true,priority=100,prefix=bskyweb:,suffix=,format=long + + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v4 + with: + context: . + push: ${{ github.event_name != 'pull_request' }} + file: ./Dockerfile + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max |