This repository has been archived by the owner on May 24, 2024. It is now read-only.
Update DockerHub repo name #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Builds Cypress Container with custom packages; Cypress UI Test | |
on: | |
push: | |
branches: [ container-cypress-test-ui ] | |
pull_request: | |
branches: [ container-cypress-test-ui ] | |
jobs: | |
build: | |
name: Build Docker Images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- 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: Setup QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Setup Docker Buildx | |
uses: docker/[email protected] | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Build and push image to Docker Hub | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64, linux/arm64 | |
- name: Security scan | |
uses: anchore/scan-action@v3 | |
with: | |
image-reference: "ubuntu:latest" | |
fail-build: true |