Skip to content

Commit

Permalink
update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyladence committed Oct 3, 2024
1 parent b3ddcc3 commit ef59e8b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
on:
push:
branches:
- main
branches: ['main']

jobs:
docker:
build-and-push-image:
runs-on: ubuntu-latest
steps:
-
name: 'Checkout GitHub Action'
uses: actions/checkout@main
-
name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: vyladence/filehost:latest
tags: ghcr.io/vyladence/filehost:latest

0 comments on commit ef59e8b

Please sign in to comment.