Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Ignore git
.git
.gitignore
.github

# Ignore IDE config files
.idea/*
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: Build / Test / Push
on:
push:
branches:
- '*'
- '**'
workflow_dispatch:

env:
DOCKER_METADATA_SET_OUTPUT_ENV: 'true'

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,6 +81,8 @@ jobs:
needs:
- build
- test
env:
DOCKER_APP_IMAGE: ${{ needs.build.outputs.build-image }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -100,9 +105,7 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}

- name: Retag and push the image
uses: docker/build-push-action@v6
with:
cache-from: type=registry,ref=${{ needs.build.outputs.build-image }}
labels: ${{ steps.branch-meta.outputs.labels }}
push: true
tags: ${{ steps.branch-meta.outputs.tags }}
run: |
docker pull "$DOCKER_APP_IMAGE"
echo "$DOCKER_METADATA_OUTPUT_TAGS" | tr ' ' '\n' | xargs -n1 docker tag "$DOCKER_APP_IMAGE"
docker push --all-tags "$(echo "$DOCKER_APP_IMAGE" | cut -f1 -d:)"
6 changes: 0 additions & 6 deletions Jenkinsfile

This file was deleted.