Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee2c2231b1 | ||
|
|
d305aa313a | ||
|
|
7c13b3900a |
@@ -6,24 +6,23 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
run: |
|
run: docker buildx create --use
|
||||||
docker buildx create --use
|
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login -u "${{ env.ACTOR }}" --password-stdin gitea.scu.si
|
echo "${{ secrets.GITEA_TOKEN }}" | docker login -u "${{ github.actor }}" --password-stdin gitea.scu.si
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--push \
|
--push \
|
||||||
-t gitea.scu.si/${{ env.REPOSITORY }}/mdhost:latest \
|
-t gitea.scu.si/${{ github.repository }}/mdhost:latest \
|
||||||
-t gitea.scu.si/${{ env.REPOSITORY }}/mdhost:${{ env.REF_NAME }} \
|
-t gitea.scu.si/${{ github.repository }}/mdhost:${{ github.ref_name }} \
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user