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:
|
on:
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build_and_push:
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Build and Push Container to ghcr.io
|
||||||
- name: Build the Docker image
|
uses: GlueOps/github-actions-build-push-containers@v0.3.7
|
||||||
run: docker build . --file Dockerfile --tag go-proxy:$(date +%s) --tag go-proxy:0.4 --tag go-proxy:latest
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue