Skip to content

Commit

Permalink
shit
Browse files Browse the repository at this point in the history
  • Loading branch information
loonsies committed Jan 12, 2025
1 parent cd97d84 commit cc09bf7
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
name: Moogly build and push


on:
push:
branches:
- main
pull_request:
workflow_dispatch:

env:
REGISTRY: docker.io
IMAGE_NAME: ${{ secrets.DOCKER_USERNAME }}/moogly

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
- name: Checkout repository
uses: actions/checkout@v3
-
name: Log in to Docker Hub

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- id: string
uses: ASzc/change-string-case-action@v2
with:
string: ${{ env.IMAGE_NAME }}
-
name: Generate random tag

- name: Generate random tag
id: random_tag
run: echo "tag=$(openssl rand -hex 6)" >> $GITHUB_ENV
-
name: Build and push

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
Expand Down

0 comments on commit cc09bf7

Please sign in to comment.