Use specific and latest version in actions x2

This commit is contained in:
Ajay Bura 2022-01-31 10:03:31 +05:30
parent 56de33c821
commit fe7c7660d3

View file

@ -11,22 +11,22 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v2.4.0
- name: Log in to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v3.6.2
with:
images: ajbura/cinny
- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v2.8.0
with:
context: .
push: true