Skip to content

Commit

Permalink
ci: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Feb 2, 2024
1 parent 4d8a213 commit 38b689a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/devbox-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker
name: Docker (devbox)

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
Expand All @@ -7,27 +7,25 @@ name: Docker

on:
schedule:
- cron: '40 2 * * *'
- cron: "40 2 * * *"
push:
branches: [ "main" ]
branches: ["main"]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
tags: ["v*.*.*"]
paths:
- "devbox/**"
- ".github/workflows/devbox-publish.yml"
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: pocketenv-io/devbox


jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -46,7 +44,7 @@ jobs:
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
with:
cosign-release: 'v2.1.1'
cosign-release: "v2.1.1"

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
Expand All @@ -70,7 +68,7 @@ jobs:
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env. }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit 38b689a

Please sign in to comment.