Skip to content

Commit

Permalink
Merge pull request #37 from elraro/docker-build
Browse files Browse the repository at this point in the history
Update docker workflow
  • Loading branch information
elraro authored Oct 1, 2023
2 parents 987425c + a53d187 commit 66fac79
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ on:
push:
branches: [ master ]

env:
REGISTRY: ghcr.io

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Login to DockerHub
uses: docker/login-action@v1
- name: Checkout
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
file: Dockerfile
tags: elraro/rajoybot:latest
context: .
tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest

0 comments on commit 66fac79

Please sign in to comment.