Add deploy script and CI workflow for sandboxed homepage deployment.
This commit is contained in:
1 parent
0737b28897
commit
571f43457d
5 files changed
+142
-12
No files matched your search
@@ -0,0 +1,26 @@
|
||||
name: images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop, master]
|
||||
tags: ['v*']
|
||||
|
||||
env:
|
||||
REGISTRY: git.security-command.org/securitycommand
|
||||
|
||||
jobs:
|
||||
sandbox:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to the registry
|
||||
run: >
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}"
|
||||
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
image="$REGISTRY/homepage-sandbox"
|
||||
docker build -t "$image:${{ gitea.sha }}" -t "$image:${{ gitea.ref_name }}" sandbox/
|
||||
docker push --all-tags "$image"
|
||||
Reference in new issue
Block a user