Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Update DockerHub repo name #1

Update DockerHub repo name

Update DockerHub repo name #1

name: Pulls Cypress Container
on:
push:
branches: [ container-test-website ]
pull_request:
branches: [ container-test-website ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
amyfarrellatgsa/container-cypress-test
tags: |
type=ref,event=branch
type=semver,pattern={{major}}.{{minor}}
flavor: |
latest=false
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Pull ubuntu image from Docker Hub
run: docker pull ubuntu:latest
- name: Security scan
uses: anchore/scan-action@v3
with:
image-reference: "ubuntu:latest"
fail-build: true
- name: Build and push image to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}