forked from swablab/website
feat: add registry push
This commit is contained in:
parent
f7c25b4614
commit
726c536596
2 changed files with 35 additions and 36 deletions
|
@ -1,5 +1,5 @@
|
||||||
name: Build Astro
|
name: Build Astro
|
||||||
on: [push, pull_request, workflow_dispatch]
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ASTRO_TELEMETRY_DISABLED: true
|
ASTRO_TELEMETRY_DISABLED: true
|
||||||
|
@ -18,37 +18,36 @@ jobs:
|
||||||
- run: deno task install
|
- run: deno task install
|
||||||
- run: deno task check
|
- run: deno task check
|
||||||
|
|
||||||
#deploy:
|
deploy:
|
||||||
# name: 🚢 Deploy
|
name: 🚢 Deploy
|
||||||
# if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
|
runs-on: docker
|
||||||
# runs-on: ubuntu-latest
|
container:
|
||||||
# needs: [check]
|
image: node:lts
|
||||||
# steps:
|
if: github.ref == 'refs/heads/main'
|
||||||
# - uses: actions/checkout@v4
|
needs: [check]
|
||||||
#
|
steps:
|
||||||
# - uses: denoland/setup-deno@v2
|
- uses: https://github.com/actions/checkout@v4
|
||||||
# with:
|
|
||||||
# deno-version: v2.x
|
- uses: https://github.com/denoland/setup-deno@v2
|
||||||
# - run: deno task install
|
with:
|
||||||
# - run: deno task build
|
deno-version: v2.x
|
||||||
#
|
- run: deno task install
|
||||||
# - name: build containerfile
|
- run: deno task build
|
||||||
# id: build-image
|
|
||||||
# uses: redhat-actions/buildah-build@v2
|
- name: build containerfile
|
||||||
# with:
|
id: build-image
|
||||||
# image: website
|
uses: https://github.com/redhat-actions/buildah-build@v2
|
||||||
# tags: latest
|
with:
|
||||||
# containerfiles: |
|
image: website
|
||||||
# ./Containerfile
|
tags: latest
|
||||||
#
|
containerfiles: |
|
||||||
# - name: Push to registry
|
./Containerfile
|
||||||
# uses: redhat-actions/push-to-registry@v2
|
|
||||||
# with:
|
- name: Push to registry
|
||||||
# image: ${{ steps.build-image.outputs.image }}
|
uses: https://github.com/redhat-actions/push-to-registry@v2
|
||||||
# tags: ${{ steps.build-image.outputs.tags }}
|
with:
|
||||||
# username: ${{ secrets.REGISTRY_USER }}
|
image: ${{ steps.build-image.outputs.image }}
|
||||||
# password: ${{ secrets.REGISTRY_PASSWORD }}
|
tags: ${{ steps.build-image.outputs.tags }}
|
||||||
# registry: ${{ secrets.REGISTRY }}
|
username: token
|
||||||
#
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# - name: Trigger deployment
|
registry: ${{ github.server_url }}/${{ github.repository }}
|
||||||
# run: curl -X POST ${{ secrets.DEPLOY_WEBHOOK }}
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@swablab/website",
|
"name": "@swablab/website",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install": "deno install",
|
"install": "deno install -q",
|
||||||
"check": "astro check",
|
"check": "astro check",
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
|
|
Loading…
Add table
Reference in a new issue