Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
denismaggior8 committed Jan 9, 2024
1 parent d6cb897 commit 7206afc
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@ jobs:
packages: write
id-token: write

steps:
- uses: actions/[email protected]
steps:
- uses: actions/[email protected]

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
with:
context: '00 - Prerequisites/'
file: '00 - Prerequisites/Dockerfile'
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/my-nginx:latest
- name: Build and push
uses: docker/build-push-action@v5
with:
context: '00 - Prerequisites/'
file: '00 - Prerequisites/Dockerfile'
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/my-nginx:latest

- uses: sigstore/cosign-installer@main

- name: Sign the images
run: |
cosign sign ${{ secrets.DOCKERHUB_USERNAME }}/my-nginx:latest
- uses: sigstore/cosign-installer@main
- name: Sign the images
run: |
cosign sign ${{ secrets.DOCKERHUB_USERNAME }}/my-nginx:latest

0 comments on commit 7206afc

Please sign in to comment.