Skip to content

Commit

Permalink
Merge branch 'dev-workflow-push' into main. Close #93.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanperez-keera committed Feb 1, 2024
2 parents bf23e58 + 71add53 commit e4c2027
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/earthly-build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Earthly build
on:
workflow_dispatch:
push:
branches: ['main']
tags: ['*']
pull_request:
schedule:
- cron: '0 11 * * *'
Expand Down Expand Up @@ -45,7 +47,7 @@ jobs:
- name: Push spaceros image
env:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_RW_TOKEN }}
if: ${{ (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main' }}
if: ${{ github.ref_type == 'tag' }}
run: |
echo $DOCKER_HUB_TOKEN | docker login --username osrfbot --password-stdin
cd spaceros
Expand Down

0 comments on commit e4c2027

Please sign in to comment.