Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push master merges to elemental-operator-ci #100

Merged
merged 5 commits into from
Aug 1, 2022
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
15 changes: 14 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Docker build and push
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
Expand All @@ -19,14 +21,25 @@ jobs:
COMMITDATE=`date -d @$(git log -n1 --format="%at") "+%FT%TZ"`
echo "::set-output name=operator_tag::$TAG"
echo "::set-output name=commit_date::$COMMITDATE"
- name: Docker meta
- name: Docker meta for tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
id: meta
uses: docker/metadata-action@v3
with:
images: |
quay.io/costoolkit/elemental-operator
tags: |
type=semver,pattern={{raw}}
- name: Docker meta for master
if: contains(github.ref, 'refs/heads/main')
id: meta
uses: docker/metadata-action@v3
with:
images: |
quay.io/costoolkit/elemental-operator-ci
tags: |
type=sha,format=short,prefix=${{ steps.export_tag.outputs.operator_tag }}-
type=raw,value=latest
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ concurrency:
cancel-in-progress: true
jobs:
push-docker:
env:
REPO: ttl.sh/elemental-operator-ci
runs-on: ubuntu-latest
outputs:
chart_name: ${{ steps.chart.outputs.chart_name }}
Expand All @@ -29,18 +31,12 @@ jobs:
uses: docker/metadata-action@v3
with:
images: |
quay.io/costoolkit/elemental-operator-ci
${{ env.REPO }}
tags: |
type=sha,format=short,prefix=${{ steps.export_tag.outputs.operator_tag }}-
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to Quay
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build image
uses: docker/build-push-action@v2
with:
Expand All @@ -55,7 +51,7 @@ jobs:
COMMITDATE=${{ steps.export_tag.outputs.commit_date }}
COMMIT=${{ github.sha }}
- name: Make chart
run: make chart
run: REPO=${{ env.REPO }} make chart
- name: Set chart output
id: chart
run: |
Expand Down