Skip to content

Commit

Permalink
Merge pull request #3 from vaggeliskls/feat/dockerhub
Browse files Browse the repository at this point in the history
Feat/dockerhub
  • Loading branch information
vaggeliskls authored Nov 8, 2024
2 parents 244a060 + 6088140 commit 10c87b0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
types: [published]

env:
REGISTRY: ghcr.io
TAG_NAME: ${{ github.ref_name }}

jobs:
Expand All @@ -23,11 +22,12 @@ jobs:

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
${{ env.REGISTRY }}/${{ github.repository }}
ghcr.io/${{ github.repository }}
docker.io/${{ github.repository }}
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
Expand All @@ -39,14 +39,20 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Login to Github packages
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ version: "3.9"

services:
windows-github-runner-vm:
image: ghcr.io/vaggeliskls/windows-github-custom-runner:latest
image: docker.io/vaggeliskls/windows-github-custom-runner:latest
env_file: .env
stdin_open: true
tty: true
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
windows-github-runner-vm:
image: ghcr.io/vaggeliskls/windows-github-custom-runner:latest
image: docker.io/vaggeliskls/windows-github-custom-runner:latest
build:
dockerfile: ./Dockerfile
context: .
Expand Down

0 comments on commit 10c87b0

Please sign in to comment.