Skip to content

Commit

Permalink
ci: push to docker.io
Browse files Browse the repository at this point in the history
  • Loading branch information
vaggeliskls authored Jan 2, 2024
1 parent 5666be9 commit 0fbf518
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Windows Vagrant VM

on:
release:
types: [published]

# on:
# push:
# branches:
# - qemu-enable
# release:
# types: [published]

on:
push:
branches:
- docker-push

env:
REGISTRY: ghcr.io
Expand All @@ -34,7 +34,8 @@ jobs:
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 @@ -50,10 +51,17 @@ jobs:
- name: Login to Github packages
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:
registry: docker.io
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit 0fbf518

Please sign in to comment.