[Snyk] Security upgrade cryptography from 39.0.1 to 42.0.2 #777
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: Master CI/CD | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Docker: | |
runs-on: ubuntu-latest | |
# needs: ci | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: docker cache | |
uses: satackey/[email protected] | |
# Ignore the failure of a step and avoid terminating the job. | |
continue-on-error: true | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN}} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ github.sha }} | |
ghcr.io/${{ github.repository }}:${{ github.sha }} | |
- name: Build and push latest | |
if: github.event_name != 'pull_request' | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:latest | |
ghcr.io/${{ github.repository }}:latest | |
- name: check install | |
run: | | |
docker images | |
docker run --rm ghcr.io/${{ github.repository }}:${{ github.sha }} ansible --version | |
docker run --rm ghcr.io/${{ github.repository }}:${{ github.sha }} ansible-lint --version | |
docker run --rm ghcr.io/${{ github.repository }}:${{ github.sha }} ssh -V | |
docker run --rm ghcr.io/${{ github.repository }}:${{ github.sha }} bash --version |