Change from ghcr to dockerhub

This commit is contained in:
Noah 2024-12-22 04:06:08 +01:00
parent 96db61831c
commit 877852aa67
2 changed files with 5 additions and 11 deletions

View file

@ -2,8 +2,6 @@ name: Build and Push to Docker Hub on changes to master branch
on: on:
push: push:
branches:
- master
jobs: jobs:
docker: docker:
@ -18,10 +16,8 @@ jobs:
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ghcr.io username: ${{secrets.DOCKERHUB_USERNAME}}
username: ${{github.actor}} password: ${{secrets.DOCKERHUB_TOKEN}}
password: ${{secrets.GHCR_TOKEN}} # needs read:packages, write:packages. delete:packages
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@ -29,7 +25,5 @@ jobs:
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7
push: true push: true
tags: | tags: |
ghcr.io/${{ github.repository }}:master ${{ github.repository }}:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:commit-${{ github.sha }} ${{ github.repository }}:commit-${{ github.sha }}

View file

@ -1,6 +1,6 @@
services: services:
steamsalty: steamsalty:
image: ghcr.io/watn3y/steamsalty:master image: watn3y/steamsalty:master
container_name: steamsalty container_name: steamsalty
restart: unless-stopped restart: unless-stopped
volumes: volumes: