This commit is contained in:
parent
4278cd9e54
commit
7cad2bc64b
2 changed files with 11 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
|||
.react-router
|
||||
build
|
||||
|
||||
node_modules
|
||||
README.md
|
||||
README.md
|
||||
|
|
|
@ -21,26 +21,17 @@ jobs:
|
|||
run: bun install
|
||||
- name: Build
|
||||
run: bun run build
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
- name: Docker login
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
name: build-client
|
||||
path: build/client
|
||||
package:
|
||||
name: Package
|
||||
needs: build
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: build-client
|
||||
path: build/client
|
||||
registry: git.kjan.de
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Build and push docker image
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: false
|
||||
push: true
|
||||
tags: |
|
||||
git.kjan.de/templates/react
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue