Skip to content

ci: Add Dockers and README #4

ci: Add Dockers and README

ci: Add Dockers and README #4

name: amp2020-web
on:
push:
paths:
- ./0ctf2020/amp2020/web
- .github/workflows/0ctf2020-amp2020-web.yaml
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Check out code
uses: actions/checkout@v2
with:
lfs: true
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:0ctf2020-amp2020-web
context: 0ctf2020/amp2020/web
file: ./0ctf2020/amp2020/web/Dockerfile
#