mirror of
https://github.com/yusing/godoxy.git
synced 2025-08-02 14:57:01 +00:00
Update docker-image.yml
This commit is contained in:
parent
7bf5784016
commit
f2ce27ccb2
1 changed files with 5 additions and 11 deletions
16
.github/workflows/docker-image.yml
vendored
16
.github/workflows/docker-image.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue