Skip to content

Commit

Permalink
Merge pull request #1 from Slickdeals/develop
Browse files Browse the repository at this point in the history
Develop -> main
  • Loading branch information
Wicaeed authored Nov 13, 2023
2 parents 2bb7243 + 3295b1c commit 3cf21ad
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 34 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-tagged-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build & Push Docker Image to GitHub

on:
push:
tags:
- "*.*.*"

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

jobs:
build_image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
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: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for the Docker image
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./app
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
RELEASE_TAG=${{ vars.RELEASE_TAG }}
34 changes: 0 additions & 34 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit 3cf21ad

Please sign in to comment.