Update Docker workflow to use Gitea registry and credentials for image publishing
Some checks failed
Create and publish a Docker image for Linux / build-and-push-image (push) Failing after 18s
Some checks failed
Create and publish a Docker image for Linux / build-and-push-image (push) Failing after 18s
Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com>
This commit is contained in:
10
.github/workflows/docker-image-linux.yml
vendored
10
.github/workflows/docker-image-linux.yml
vendored
@@ -3,8 +3,8 @@ on:
|
|||||||
- push
|
- push
|
||||||
- workflow_dispatch
|
- workflow_dispatch
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: gitea.sjs.io
|
||||||
GITHUBUSER: ${{ github.repository_owner }}
|
GITHUBUSER: ${{ gitea.repository_owner }}
|
||||||
IMAGE_NAME: speedtest-cli
|
IMAGE_NAME: speedtest-cli
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
@@ -26,14 +26,14 @@ jobs:
|
|||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata for Docker
|
- name: Extract metadata for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.GITHUBUSER }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.GITEAUSER }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest
|
type=raw,value=latest
|
||||||
type=sha,format=short
|
type=sha,format=short
|
||||||
|
|||||||
Reference in New Issue
Block a user