ci: forgejo docker build
This commit is contained in:
parent
c97416b2c3
commit
2239068f02
1 changed files with 29 additions and 0 deletions
29
.forgejo/workflows/build.yml
Normal file
29
.forgejo/workflows/build.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Build
|
||||
on: [workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
Deploy:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: 'true'
|
||||
|
||||
- name: get-npm-version
|
||||
id: package-version
|
||||
uses: martinbeentjes/npm-get-version-action@v1.3.1
|
||||
|
||||
- name: Docker Login
|
||||
run: |
|
||||
docker login -u riksolo -p ${{secrets.CONTAINER_REGISTRY_TOKEN}} git.riksolo.com
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
docker build -t git.riksolo.com/riksolo/eleventy-riksolo-com:latest -t git.riksolo.com/riksolo/open-stage-control:${{github.sha}} .
|
||||
docker push git.riksolo.com/riksolo/open-stage-control:latest
|
||||
docker push git.riksolo.com/riksolo/open-stage-control:${{github.sha}}
|
||||
docker push git.riksolo.com/riksolo/open-stage-control:${{steps.package-version.outputs.current-version}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue