This commit is contained in:
@@ -21,11 +21,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
run: |
|
||||||
with:
|
mkdir -p ~/.docker
|
||||||
registry: gitea.arcodange.duckdns.org
|
cat <<EOF > /root/.docker/config.json
|
||||||
username: ${{ github.actor }}
|
{
|
||||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
"auths": {
|
||||||
|
"gitea.arcodange.duckdns.org": {
|
||||||
|
"auth": "$(echo ${{ github.actor }}:${{ secrets.PACKAGES_TOKEN }} | base64)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
chmod 644 /root/.docker/config.json
|
||||||
|
chmod 755 /root/.docker/
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -36,6 +44,6 @@ jobs:
|
|||||||
docker build -t app .
|
docker build -t app .
|
||||||
for TAG in $TAGS; do
|
for TAG in $TAGS; do
|
||||||
docker tag app gitea.arcodange.duckdns.org/${{ github.repository }}:$TAG
|
docker tag app gitea.arcodange.duckdns.org/${{ github.repository }}:$TAG
|
||||||
docker push gitea.arcodange.duckdns.org/${{ github.repository }}:$TAG
|
EXPORT HTTPS_PROXY=pi1.home:3128 docker push gitea.arcodange.duckdns.org/${{ github.repository }}:$TAG
|
||||||
done
|
done
|
||||||
|
|
||||||
Reference in New Issue
Block a user