Skip to content

Commit

Permalink
uncommen github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dovixman committed Nov 14, 2024
1 parent acc5477 commit f483f80
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 119 deletions.
75 changes: 0 additions & 75 deletions .github/workflows/build-push-dockerhub.yml

This file was deleted.

88 changes: 44 additions & 44 deletions .github/workflows/build-push-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,47 +12,47 @@
### Uncomment all lines below to use this template ###
#######################################################

# name: "Docker build & push - GHCR"
#
# concurrency:
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# cancel-in-progress: true
#
# on:
# pull_request:
# types: [closed]
# push:
# workflow_dispatch:
#
# env:
# REGISTRY: ghcr.io
# IMAGE_NAME: ${{ github.repository }}:latest
#
# jobs:
# docker-build-push:
# runs-on: ubuntu-latest
# permissions:
# packages: write
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
#
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
#
# - name: Log in to the Container registry
# uses: docker/login-action@v3
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: "Build and push Docker image"
# uses: docker/build-push-action@v6
# with:
# push: true
# tags: ${{ env.REGISTRY }}/${{env.IMAGE_NAME}}
name: "Docker build & push - GHCR"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
types: [closed]
push:
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}:latest

jobs:
docker-build-push:
runs-on: ubuntu-latest
permissions:
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Build and push Docker image"
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ env.REGISTRY }}/${{env.IMAGE_NAME}}

0 comments on commit f483f80

Please sign in to comment.