Update docker-image.yml

This commit is contained in:
Yuzerion 2024-03-30 00:25:33 +08:00 committed by GitHub
parent 7bf5784016
commit f2ce27ccb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,18 +1,12 @@
name: Docker Image CI
name: Build and Push Container to GitHub Container Registry
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [opened, synchronize, reopened]
jobs:
build:
build_and_push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag go-proxy:$(date +%s) --tag go-proxy:0.4 --tag go-proxy:latest
- name: Build and Push Container to ghcr.io
uses: GlueOps/github-actions-build-push-containers@v0.3.7