Skip to content

feat: added draft new article #39

feat: added draft new article

feat: added draft new article #39

Workflow file for this run

name: Docker build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build an image from Dockerfile
run: |
docker build -t docker.io/hecha00/personal-website:${{ github.sha }} .
- name: Scan Docker Image
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/hecha00/personal-website:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: hecha00/golang-app:latest
platforms: linux/amd64,linux/arm64