This commit is contained in:
parent
a32840c309
commit
5473680998
1 changed files with 16 additions and 0 deletions
|
|
@ -56,3 +56,19 @@ jobs:
|
|||
-H "Authorization: token $TOKEN" \
|
||||
-F "attachment=@$FILE"
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://code.forgejo.org/actions/docker-setup-buildx@v1
|
||||
|
||||
- name: Login to Registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login registry.derickphan.com -u _ --password-stdin
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
TAG="${{ github.ref_name }}"
|
||||
if [ -z "$TAG" ]; then
|
||||
TAG="latest"
|
||||
fi
|
||||
docker build -t registry.derickphan.com/tinyweb:$TAG .
|
||||
docker push registry.derickphan.com/tinyweb:$TAG
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue