Skip to content

update

update #8

Workflow file for this run

name: update
on:
push:
branches:
- master
paths:
- '00 - Prerequisites/Dockerfile'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- 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