Skip to content

Commit

Permalink
use build_image workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ committed Oct 20, 2024
1 parent 26d6356 commit d58d605
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 46 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,14 @@ jobs:
artifact_name: rendered-api-docu
artifact_path: index.html

build_and_push_image:
build_image:
needs: [golang_test, golang_quality, render_openapi_spec]
runs-on: ubuntu-latest
if: "!startsWith(github.ref, 'refs/tags/')"
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Build container
run: docker build --build-arg VERSION=${{ github.sha }} -t cubicrootxyz/remindme:beta .
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push development image
if: "${{ github.ref != 'refs/heads/main' }}"
run: |
docker tag cubicrootxyz/remindme:beta cubicrootxyz/remindme:${{ github.sha }}
docker push cubicrootxyz/remindme:${{ github.sha }}
- name: Push beta image
if: "${{ github.ref == 'refs/heads/main' }}"
run: docker push cubicrootxyz/remindme:beta
uses: CubicrootXYZ/Workflows/.github/workflows/[email protected]
with:
docker_build_args: "--no-cache"
docker_file_path: "./"
image_name: "cubicrootxyz/remindme"
static_tag: "beta"
secrets:
dockerhub_user: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
25 changes: 0 additions & 25 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit d58d605

Please sign in to comment.