Skip to content

Commit

Permalink
fix: remove useless build-push job
Browse files Browse the repository at this point in the history
  • Loading branch information
banshee86vr committed Feb 13, 2024
1 parent f93ea35 commit cd98c84
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
on:
push:
branches:
- "*"
- "main"

permissions:
contents: write
pages: write
id-token: write

env:
REGISTRY: ghcr.io

jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
Expand All @@ -31,30 +28,3 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

build-docker-image:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Res
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get short SHA
id: slug
# run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
run: echo "SHA8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> "$GITHUB_ENV"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:hello-world-app"
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/main' && true || false }}
tags: |
${{ env.REGISTRY }}/banshee86vr/hello-world:${{ env.SHA8 }}
${{ env.REGISTRY }}/banshee86vr/hello-world:latest

0 comments on commit cd98c84

Please sign in to comment.