throwing in the towel v2

This commit is contained in:
2025-07-19 16:40:28 -04:00
parent ea7881416d
commit f3237c6171

View File

@@ -9,7 +9,7 @@ on:
env: env:
REGISTRY: scm.wyattjmiller.com REGISTRY: scm.wyattjmiller.com
USERNAME: ${{ secrets.GH_ACTION_USERNAME }} USERNAME: wymiller # Define username here to use consistently
jobs: jobs:
build-and-push: build-and-push:
@@ -17,7 +17,6 @@ jobs:
permissions: permissions:
contents: read contents: read
packages: write packages: write
strategy: strategy:
matrix: matrix:
include: include:
@@ -30,7 +29,6 @@ jobs:
- dockerfile: Dockerfile - dockerfile: Dockerfile
image: my-website-v2_frontend image: my-website-v2_frontend
context: ./frontend context: ./frontend
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -42,7 +40,7 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ secrets.GH_ACTION_USERNAME }} username: ${{ env.USERNAME }}
password: ${{ secrets.GH_ACTION_TOKEN }} password: ${{ secrets.GH_ACTION_TOKEN }}
- name: Extract metadata - name: Extract metadata
@@ -64,7 +62,7 @@ jobs:
context: ${{ matrix.context }} context: ${{ matrix.context }}
file: ${{ matrix.context }}/${{ matrix.dockerfile }} file: ${{ matrix.context }}/${{ matrix.dockerfile }}
push: true push: true
tags: scm.wyattjmiller.com/wymiller/${{ matrix.image }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
@@ -76,7 +74,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -93,15 +90,16 @@ jobs:
The following Docker images have been built and pushed to the container registry: The following Docker images have been built and pushed to the container registry:
- `${{ env.REGISTRY }}/wymiller/mywebsite-public:${{ github.ref_name }}` - `${{ env.REGISTRY }}/${{ env.USERNAME }}/my-website-v2_public:${{ github.ref_name }}`
- `${{ env.REGISTRY }}/wymiller/mywebsite-task:${{ github.ref_name }}` - `${{ env.REGISTRY }}/${{ env.USERNAME }}/my-website-v2_task:${{ github.ref_name }}`
- `${{ env.REGISTRY }}/wymiller/mywebsite-frontend:${{ github.ref_name }}` - `${{ env.REGISTRY }}/${{ env.USERNAME }}/my-website-v2_frontend:${{ github.ref_name }}`
### Usage ### Usage
```bash ```bash
docker pull ${{ env.REGISTRY }}/wymiller/mywebsite-public:${{ github.ref_name }} docker pull ${{ env.REGISTRY }}/${{ env.USERNAME }}/my-website-v2_public:${{ github.ref_name }}
docker pull ${{ env.REGISTRY }}/wymiller/mywebsite-task:${{ github.ref_name }} docker pull ${{ env.REGISTRY }}/${{ env.USERNAME }}/my-website-v2_task:${{ github.ref_name }}
docker pull ${{ env.REGISTRY }}/wymiller/mywebsite-frontend:${{ github.ref_name }} docker pull ${{ env.REGISTRY }}/${{ env.USERNAME }}/my-website-v2_frontend:${{ github.ref_name }}
``` ```
draft: false draft: false
prerelease: false prerelease: false