Skip to content

Commit

Permalink
Attempt Docker build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
jknipp committed Apr 30, 2024
1 parent 63c16d2 commit b61a620
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,31 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Run a one-line script
uses: docker/build-push-action@v5
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: spreedly/phasers-worksample
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: name/app

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: spreedly/phasers-worksample

- name: Build and push Docker image
id: push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: latest

0 comments on commit b61a620

Please sign in to comment.