Skip to content

Commit

Permalink
ci: Add docker image automatic build
Browse files Browse the repository at this point in the history
  • Loading branch information
pando85 committed Jan 13, 2024
1 parent 35cbcb9 commit e5d310a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 80 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Docker Image Push

on:
push:
branches:
- master

jobs:
build-and-push:
runs-on: ubuntu-latest
env:
IMAGE_NAME: ghcr.io/${{ github.actor }}/transcoder
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and Push Docker Image
run: |
IMAGE_VERSION=$(git rev-parse --short HEAD) make push-images
IMAGE_VERSION=latest make push-images
79 changes: 0 additions & 79 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GOOPTS ?=
GOOS ?= $(shell $(GO) env GOHOSTOS)
GOARCH ?= $(shell $(GO) env GOHOSTARCH)

IMAGE_NAME ?= pando85/transcoder
IMAGE_NAME ?= ghcr.io/pando85/transcoder
IMAGE_VERSION ?= latest

.DEFAULT: help
Expand Down

0 comments on commit e5d310a

Please sign in to comment.