Skip to content

Commit

Permalink
fix: add guthub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
plaformsre committed Apr 12, 2024
1 parent f1af149 commit 628e179
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci

# Controls when the workflow will run
on:
# Build weekly
schedule:
- cron: '0 11 * * 0'
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
# tags:
# - [0-9]+.[0-9]+.[0-9]+*
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:

# JOBS section
jobs:
# Common image section
build-bcc:
name: build-bcc
runs-on: ubuntu-latest
steps:
-
name: Ubuntu - Checkout
uses: actions/checkout@v3
-
name: Ubuntu - Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Ubuntu - Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Ubuntu - Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Ubuntu - Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/ubuntu-bcc:latest, ${{ secrets.DOCKER_HUB_USERNAME }}/ubuntu-bcc:1.0.0
labels: "bcc"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# peech
# base image with bcc

0 comments on commit 628e179

Please sign in to comment.