Skip to content

Commit

Permalink
Update Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry2080 committed Nov 11, 2024
1 parent 583a9e9 commit 4f3d2a5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/docker-hub-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Create and publish Docker image

on:
push:
branches: ['main']
paths-ignore:
- LICENSE
- README.md
- .gitignore

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: "docker-hub-publish"
cancel-in-progress: true

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
pull: true
tags: econumo/econumo-one-frontend:latest
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down

0 comments on commit 4f3d2a5

Please sign in to comment.