Build and Push AWS-OC Container image to Quay.io🚀 #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: aws-cli-push-quay | |
run-name: Build and Push AWS-OC Container image to Quay.io🚀 | |
env: | |
IMAGE_BASE_NAME: "quay.io/alopezme/aws-cli" | |
# This section ensures that new pushes cancel current executions of the workflow | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
# schedule: | |
# - cron: '0 10 * * *' | |
push: | |
paths: | |
- 'dockerfile-aws/**' | |
- '.github/workflows/aws-cli-push-quay.yml' | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
name: "Build AWS-OC Image" | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Login to Quay.io | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_REPO_USERNAME }} | |
password: ${{ secrets.QUAY_REPO_TOKEN }} | |
- name: Build and push image | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
context: . | |
file: dockerfile-aws/Dockerfile | |
tags: ${{ env.IMAGE_BASE_NAME }}:latest |