Skip to content

Commit

Permalink
add techtrends-dockerhub ci
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyshay committed Jul 15, 2024
1 parent b25c688 commit c400415
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/techtrends-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: TechTrends - Package with Docker

on:
push:
branches: ['main']

jobs:
docker:
runs-on: ubuntu-latest
steps:

- name: Check Out Repo
uses: actions/checkout@v4
run: echo "My secret is ${{ secrets.w9wds233231213}}"

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

- name: Login to DockerHub
uses: docker/login-action@v3
with:

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: ./
file: ./Dockerfile
push: true

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit c400415

Please sign in to comment.