From 1e57a928314443dd1c69f1bc48a9ea1b34005429 Mon Sep 17 00:00:00 2001 From: paradajz <2544094+paradajz@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:20:05 +0000 Subject: [PATCH] ci: switch to github registry --- .github/workflows/ci.yml | 6 +++--- .github/workflows/docker.yml | 20 +++++++++++--------- docker-compose.yml | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31dc961d3..07f761a3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: name: Build/Test [Ubuntu] runs-on: ubuntu-22.04 container: - image: paradajz168/opendeck-dev:latest + image: ghcr.io/shanteacontrols/opendeck:latest options: --user root steps: - name: Mark repository as safe @@ -25,7 +25,7 @@ jobs: name: Code formatting runs-on: ubuntu-22.04 container: - image: paradajz168/opendeck-dev:latest + image: ghcr.io/shanteacontrols/opendeck:latest options: --user root steps: - name: Mark repository as safe @@ -41,7 +41,7 @@ jobs: name: Code linting runs-on: ubuntu-22.04 container: - image: paradajz168/opendeck-dev:latest + image: ghcr.io/shanteacontrols/opendeck:latest options: --user root steps: - name: Mark repository as safe diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 67802dcc0..23e880dcc 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,17 +9,19 @@ jobs: update_docker: runs-on: ubuntu-22.04 steps: - - name: Checkout + - name: Pull the repository uses: actions/checkout@v3 - - name: Login to Docker Hub - uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_PASSWORD }} + fetch-depth: 0 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Push to docker hub - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: - context: . - file: .devcontainer/Dockerfile push: true - tags: paradajz168/opendeck-dev:latest \ No newline at end of file + context: . + file: .devcontainer/Dockerfile \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 3fe37febe..b24b84de3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.7' services: opendeck: container_name: opendeck - image: paradajz168/opendeck-dev + image: ghcr.io/shanteacontrols/opendeck volumes: - $PWD:/home/ubuntu/OpenDeck working_dir: /home/ubuntu/OpenDeck